Skip to content

Commit a88ee3d

Browse files
ci: add GitHub Actions workflow for CMake build & tests
1 parent d3d3bfd commit a88ee3d

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [dev, main]
6+
pull_request:
7+
branches: [dev, main]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
17+
- name: Install dependencies
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y build-essential cmake ninja-build
21+
22+
- name: Configure CMake
23+
run: cmake -S . -B build -DCRUMBS_ENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Release
24+
25+
- name: Build
26+
run: cmake --build build --config Release -- -j 2
27+
28+
- name: Run tests
29+
run: ctest --test-dir build --output-on-failure

0 commit comments

Comments
 (0)