-
Notifications
You must be signed in to change notification settings - Fork 33
45 lines (42 loc) · 1.03 KB
/
ci.yml
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
38
39
40
41
42
43
44
45
name: CI
on:
workflow_dispatch:
pull_request:
paths:
- "**.zig"
- ".github/workflows/**"
push:
branches:
- main
paths:
- "**.zig"
- ".github/workflows/**"
jobs:
examples:
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0
# version: master
- run: |
make install-deps
- name: Run examples(Unix)
if: matrix.os != 'windows-latest'
run: |
# TODO: 0.11.0 will report following error with zon file, so delete now.
# error: TarUnsupportedFileType
rm build.zig.zon
zig fmt --check src/
zig build run-all --summary all
- name: Run examples(Windows)
if: matrix.os == 'windows-latest'
run: |
zig.exe fmt --check src/
zig.exe build run-all --summary all