Skip to content

Commit

Permalink
Add CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
starnight committed Dec 20, 2023
1 parent c1d27a1 commit 4559f40
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 4559f40

Please sign in to comment.