Skip to content

Commit 3bf6af3

Browse files
Create workflow cpp_maketest.yml to check if make succeeds
1 parent 3a7b2ab commit 3bf6af3

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/cpp_maketest.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: C/C++ CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Install dependencies
18+
run: |
19+
sudo apt-get update
20+
sudo apt-get install -y libgtest-dev libgsl-dev
21+
22+
- name: Make serial
23+
run: |
24+
make clean
25+
make serial
26+
27+
- name: Make and run unit test
28+
run: |
29+
make clean
30+
make test
31+
./bin/test_main

0 commit comments

Comments
 (0)