diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/main.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..f83fb15 --- /dev/null +++ b/.github/workflows/main.yml | |||
@@ -0,0 +1,23 @@ | |||
1 | name: CI | ||
2 | |||
3 | on: | ||
4 | push: | ||
5 | branches: [ master ] | ||
6 | pull_request: | ||
7 | branches: [ master ] | ||
8 | workflow_dispatch: | ||
9 | |||
10 | jobs: | ||
11 | build: | ||
12 | runs-on: ubuntu-latest | ||
13 | steps: | ||
14 | - name: Install the latest Zig version | ||
15 | run: sudo snap install zig --classic --edge | ||
16 | |||
17 | - uses: actions/checkout@v2 | ||
18 | |||
19 | - name: Run library tests | ||
20 | run: zig build test | ||
21 | |||
22 | - name: Run znk tests | ||
23 | run: zib build test-znk | ||