-
-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (43 loc) · 985 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
42
43
44
45
name: CI
on:
schedule:
- cron: '10 20 * * *'
workflow_dispatch:
pull_request:
paths:
- '**.zig'
- '.github/workflows/CI.yml'
push:
branches:
- main
paths:
- '**.zig'
- '.github/workflows/CI.yml'
jobs:
test:
timeout-minutes: 10
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
zig-version: [master]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ matrix.zig-version }}
- name: fmt and test(windows)
if: matrix.os == 'windows-latest'
run: |
zig.exe fmt --check .
zig.exe build test
zig.exe build
- name: fmt and test(unix)
if: matrix.os != 'windows-latest'
run: |
zig fmt --check .
zig build test
zig build