Skip to content

Commit a2de76b

Browse files
committed
setup github action for C++ CI pipeline
1 parent 0f0af0a commit a2de76b

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/cpp_ci.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: C++ CI
2+
3+
on:
4+
push:
5+
branches: [ main, cpp_ci ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-and-test:
11+
runs-on: ubuntu-22.04
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v4
16+
17+
- name: Install C++ dependencies
18+
run: sudo apt update && sudo apt install -y build-essential cmake libgtest-dev
19+
20+
- name: Setup
21+
run: cmake -B cpp/out -S ./cpp/
22+
23+
- name: Build
24+
run: cmake --build cpp/out/
25+
26+
- name: Unit Tests
27+
run: ./cpp/out/unit_tests

0 commit comments

Comments
 (0)