-
Notifications
You must be signed in to change notification settings - Fork 34
41 lines (38 loc) · 922 Bytes
/
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
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, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
with:
version: 0.11.0
- name: Run examples(Unix)
if: matrix.os != 'windows-latest'
working-directory: examples
run: |
zig fmt --check src/
zig build run-all --summary all
- name: Run examples(Windows)
if: matrix.os == 'windows-latest'
working-directory: examples
run: |
zig.exe fmt --check src/
zig.exe build run-all --summary all