Skip to content

Commit 4a857f1

Browse files
authored
Create c-cpp.yml
1 parent a05dbe9 commit 4a857f1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/c-cpp.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: C/C++ CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: config
17+
run: cmake -B build -S .
18+
- name: build
19+
run: cmake --build build -j `nproc`
20+
- name: test
21+
run: ctest --test-dir build -j `nproc`

0 commit comments

Comments
 (0)