Skip to content

Commit f51a909

Browse files
committed
Add CI workflows
1 parent a4c458e commit f51a909

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/ci.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
build-and-test:
14+
strategy:
15+
matrix:
16+
include:
17+
- os: ubuntu-latest
18+
triplet: x64-linux
19+
build_type: Release
20+
- os: ubuntu-latest
21+
triplet: x64-linux
22+
build_type: Debug
23+
- os: windows-latest
24+
triplet: x64-windows
25+
build_type: Release
26+
- os: windows-latest
27+
triplet: x64-windows
28+
build_type: Debug
29+
- os: macos-latest
30+
triplet: arm64-osx
31+
build_type: Release
32+
- os: macos-latest
33+
triplet: arm64-osx
34+
build_type: Debug
35+
36+
runs-on: ${{ matrix.os }}
37+
38+
steps:
39+
- uses: actions/checkout@v4
40+
41+
- name: Configure CMake
42+
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
43+
44+
- name: Build
45+
run: cmake --build build --config ${{ matrix.build_type }}
46+
47+
- name: Run Tests
48+
working-directory: build
49+
run: ctest -C ${{ matrix.build_type }} --output-on-failure

0 commit comments

Comments
 (0)