-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (29 loc) · 1.04 KB
/
ci.yml
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
name: ci
on: [push, pull_request]
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: init
run: sudo apt update -yqq && sudo apt install -yqq ninja-build g++-11
- name: configure gcc
run: cmake -S . --preset=default -B build -DCAPO_USE_OPENAL=OFF -DCAPO_BUILD_EXAMPLES=OFF -DCMAKE_CXX_COMPILER=g++-11
- name: configure clang
run: cmake -S . --preset=ninja-clang -B clang -DCAPO_USE_OPENAL=OFF -DCAPO_BUILD_EXAMPLES=OFF
- name: build gcc
run: cmake --build build --config=Release
- name: build clang
run: cmake --build clang --config=Release
- name: test
run: cd build && ctest -C Release
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: configure
run: cmake -S . --preset=vs22 -B build -DCAPO_USE_OPENAL=OFF -DCAPO_BUILD_EXAMPLES=OFF
- name: build
run: cmake --build build --config=Release
- name: test
run: cd build && ctest -C Release