-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.14 KB
/
ci-macos.yml
File metadata and controls
49 lines (42 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: macOS
on:
push:
branches: [ main, refactor/dod_ecs ]
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]
branches: [ main, refactor/dod_ecs ]
jobs:
build-and-test:
name: ${{ matrix.name }}
runs-on: macos-latest
if: github.event.pull_request.draft == false || github.event_name == 'push'
strategy:
fail-fast: false
matrix:
include:
# macOS with Apple Clang
- name: "macOS Clang"
compiler: clang
cmake-generator: 'Ninja'
cmake-options: '-DGAMECOE_USE_TESTCOE=ON'
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install ninja-build
run: |
brew install ninja
shell: bash
- name: Configure CMake
run: |
cmake -B build -G "${{ matrix.cmake-generator }}" ${{ matrix.cmake-options }}
- name: Build
run: |
cmake --build build --config Release
- name: Run tests
working-directory: build
run: |
echo "Running gamecoe tests"
./tests/gamecoe_tests
shell: bash