Skip to content

Commit e66a454

Browse files
authored
CI: add pipeline
1 parent 1cd9579 commit e66a454

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/main.yml

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

0 commit comments

Comments
 (0)