Skip to content

Commit 879b573

Browse files
committed
ci: split CI actions
1 parent 14b940c commit 879b573

3 files changed

Lines changed: 42 additions & 26 deletions

File tree

.github/workflows/test-macos.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: MacOS Tests (mouse)
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
paths:
7+
- 'src/**'
8+
- 'tests/**'
9+
- '.github/**'
10+
- 'CMakeLists.txt'
11+
pull_request:
12+
branches: [ master ]
13+
paths:
14+
- 'src/**'
15+
- 'tests/**'
16+
- '.github/**'
17+
- 'CMakeLists.txt'
18+
19+
jobs:
20+
test-macos:
21+
runs-on: macos-latest
22+
steps:
23+
- uses: actions/checkout@v3
24+
with:
25+
submodules: recursive
26+
27+
- name: Install dependencies
28+
run: brew install cmake sdl2
29+
30+
- name: Configure
31+
run: cmake -B build
32+
33+
- name: Build
34+
run: cmake --build build
35+
36+
- name: Test
37+
run: |
38+
# macOS can run GUI apps in headless mode
39+
build/bin/RobotCPPSDLTest --gtest_filter=-*InteractiveMode --ci-mode true
Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Robot CPP Tests
1+
name: Windows Tests (mouse)
22

33
on:
44
push:
@@ -17,28 +17,6 @@ on:
1717
- 'CMakeLists.txt'
1818

1919
jobs:
20-
test-macos:
21-
runs-on: macos-latest
22-
steps:
23-
- uses: actions/checkout@v3
24-
with:
25-
submodules: recursive
26-
27-
- name: Install dependencies
28-
run: brew install cmake sdl2
29-
30-
- name: Configure
31-
run: cmake -B build
32-
33-
- name: Build
34-
run: cmake --build build
35-
36-
- name: Test
37-
run: |
38-
# macOS can run GUI apps in headless mode
39-
build/bin/RobotCPPSDLTest --gtest_filter=-*InteractiveMode --ci-mode true
40-
41-
# Note: Windows tests can be unstable in CI
4220
test-windows:
4321
runs-on: windows-latest
4422
steps:

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# Robot CPP
22

3-
[![Robot CPP Tests](https://github.com/developer239/robot-cpp/actions/workflows/test.yml/badge.svg)](https://github.com/developer239/robot-cpp/actions/workflows/test.yml)
4-
![Windows](https://img.shields.io/badge/Windows-0078D6?style=for-the-badge&logo=windows&logoColor=white)
5-
![macOS](https://img.shields.io/badge/mac%20os-000000?style=for-the-badge&logo=macos&logoColor=F0F0F0)
3+
[![macOS Tests](https://github.com/developer239/robot-cpp/actions/workflows/test-macos.yml/badge.svg)](https://github.com/developer239/robot-cpp/actions/workflows/test-macos.yml)
4+
[![Windows Tests](https://github.com/developer239/robot-cpp/actions/workflows/test-windows.yml/badge.svg)](https://github.com/developer239/robot-cpp/actions/workflows/test-windows.yml)
65

76
This library is inspired by older unmaintained libraries like [octalmage/robotjs](https://github.com/octalmage/robotjs)
87
and [Robot/robot-js](https://github.com/Robot/robot-js). The goal is to provide cross-platform controls for various

0 commit comments

Comments
 (0)