Skip to content

Commit 38b230a

Browse files
committed
add ci pipeline to run tests and build project
1 parent 1490d3b commit 38b230a

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
branches:
7+
- master
8+
9+
permissions:
10+
checks: write
11+
contents: read
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Install dependencies
22+
run: |
23+
sudo apt-get update
24+
sudo apt-get install -y \
25+
build-essential \
26+
cmake
27+
28+
- name: Configure CMake
29+
run: |
30+
mkdir -p build
31+
cd build
32+
cmake ..
33+
34+
- name: Build
35+
run: cmake --build build
36+
37+
- name: Run tests
38+
run: cd build && make test

0 commit comments

Comments
 (0)