Skip to content

Commit 7fd9639

Browse files
committed
Add CI workflow
1 parent 664f985 commit 7fd9639

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
os: [ubuntu-latest, macos-latest]
14+
runs-on: ${{ matrix.os }}
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Configure
20+
run: cmake -B build -DCMAKE_BUILD_TYPE=Release
21+
22+
- name: Build
23+
run: cmake --build build -j$(nproc 2>/dev/null || sysctl -n hw.ncpu)
24+
25+
- name: Test
26+
run: ctest --test-dir build --output-on-failure

0 commit comments

Comments
 (0)