Skip to content

Commit 1f0af55

Browse files
committed
Add CI action
1 parent c1d27a1 commit 1f0af55

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
workflow_dispatch:
8+
9+
jobs:
10+
main:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
lang_version: [c-version, py-version]
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Build
20+
if: ${{ matrix.lang_version == 'c-version' }}
21+
run:
22+
cd ${{ matrix.lang_version }}
23+
make
24+
25+
- name: Run & Test
26+
if: ${{ matrix.lang_version == 'c-version' }}
27+
run:
28+
cd ${{ matrix.lang_version }}
29+
./microhttpserver &
30+
../autotest/client.py
31+
32+
- name: Run & Test
33+
if: ${{ matrix.lang_version == 'py-version' }}
34+
run:
35+
cd ${{ matrix.lang_version }}
36+
./main.py &
37+
../autotest/client.py

0 commit comments

Comments
 (0)