Skip to content

Commit 0d73020

Browse files
committed
Add GitHub Actions CI for Linux, macOS, and Windows
1 parent 9f858b9 commit 0d73020

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master, cmake ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
include:
15+
- os: ubuntu-latest
16+
name: Linux (GCC)
17+
cmake_generator: "Unix Makefiles"
18+
- os: macos-latest
19+
name: macOS (Clang)
20+
cmake_generator: "Unix Makefiles"
21+
- os: windows-latest
22+
name: Windows (MSVC)
23+
cmake_generator: "Visual Studio 17 2022"
24+
25+
name: ${{ matrix.name }}
26+
runs-on: ${{ matrix.os }}
27+
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
32+
- name: Configure CMake
33+
run: cmake -B build -G "${{ matrix.cmake_generator }}"
34+
35+
- name: Build
36+
run: cmake --build build --config Release
37+
38+
- name: Run Tests
39+
run: ctest --test-dir build -C Release --output-on-failure

0 commit comments

Comments
 (0)