Skip to content

Commit a39a5f0

Browse files
committed
CI: Add Actions workflow
1 parent 19d03a6 commit a39a5f0

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "**" ]
6+
pull_request:
7+
branches: [ "**" ]
8+
9+
jobs:
10+
build-and-test:
11+
name: ${{ matrix.os }} / ${{ matrix.build_type }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [ubuntu-latest, macos-latest]
17+
build_type: [Release]
18+
19+
steps:
20+
- uses: actions/checkout@v6
21+
22+
- name: Configure CMake
23+
run: |
24+
cmake -B build \
25+
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} \
26+
-DSYMX_ENABLE_DIAGNOSTIC_TESTS=OFF
27+
28+
- name: Build tests
29+
run: cmake --build build --target tests --parallel $(nproc 2>/dev/null || sysctl -n hw.logicalcpu)
30+
31+
- name: Run tests
32+
working-directory: build
33+
run: ctest --output-on-failure --build-config ${{ matrix.build_type }}

0 commit comments

Comments
 (0)