-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (31 loc) · 819 Bytes
/
ci.yml
File metadata and controls
42 lines (31 loc) · 819 Bytes
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
name: CI Build and Test
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build_and_test:
name: ${{ matrix.os }} Build
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Configure CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
- name: Build Project
run: cmake --build build --config Release
- name: Run Unit Tests
working-directory: ./build
shell: bash
run: |
if [[ "${{ runner.os }}" == "Windows" ]]; then
ctest -C Release --output-on-failure
else
ctest --output-on-failure
fi