Skip to content

Commit fc2fbac

Browse files
authored
Add C/C++ CI GitHub Action
1 parent 1cb86ec commit fc2fbac

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/c-cpp.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: C/C++ CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
linux-build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: make
15+
run: |
16+
make
17+
./test
18+
19+
macos-build:
20+
runs-on: macos-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: make
24+
run: |
25+
make
26+
./test

0 commit comments

Comments
 (0)