-
Notifications
You must be signed in to change notification settings - Fork 27
37 lines (31 loc) · 809 Bytes
/
build.yml
File metadata and controls
37 lines (31 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Build
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
jobs:
main:
runs-on: ubuntu-latest
strategy:
matrix:
lang_version: [c-version, py-version]
steps:
- uses: actions/checkout@v3
- name: Build
if: ${{ matrix.lang_version == 'c-version' }}
run: |
cd ${{ matrix.lang_version }}
make
- name: Run & Test
if: ${{ matrix.lang_version == 'c-version' }}
run: |
cd ${{ matrix.lang_version }}
./microhttpserver &
../autotest/client.py localhost:8001
- name: Run & Test
if: ${{ matrix.lang_version == 'py-version' }}
run: |
cd ${{ matrix.lang_version }}
./main.py &
../autotest/client.py localhost:8000