Skip to content

Commit 0471bcb

Browse files
committed
github workflow for CI with unit testing
1 parent c1f7eee commit 0471bcb

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.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 ]
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 out -S .
22+
23+
- name: Build
24+
run: cmake --build out/
25+
26+
- name: Unit Tests
27+
run: ./out/unit_tests

0 commit comments

Comments
 (0)