Skip to content

Commit f7d4cde

Browse files
committed
Add CI
1 parent 1a09a08 commit f7d4cde

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/c-cpp.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
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+
- uses: actions/checkout@v4
15+
with:
16+
submodules: recursive
17+
18+
- name: Install dependencies
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y build-essential cmake libgtest-dev googletest
22+
23+
- name: Configure CMake
24+
run: cmake -B ${{github.workspace}}/build
25+
26+
- name: Build
27+
run: cmake --build ${{github.workspace}}/build
28+
29+
- name: Run Basic Demo
30+
working-directory: ${{github.workspace}}/build
31+
run: ./demo_basic
32+
33+
- name: Run Advanced Demo
34+
working-directory: ${{github.workspace}}/build
35+
run: ./demo_advanced
36+
37+
- name: Run Unit Tests
38+
working-directory: ${{github.workspace}}/build
39+
run: ./ConcurrentHashMapTest

0 commit comments

Comments
 (0)