-
Notifications
You must be signed in to change notification settings - Fork 12
48 lines (38 loc) · 980 Bytes
/
compile.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
46
47
48
name: compile
on:
push:
branches: [core]
paths: ["**.zig", "**.dt", "src/inspiration", ".github/workflows/*.yml"]
pull_request:
branches: [core]
paths: ["**.zig", "**.dt", "src/inspiration", ".github/workflows/*.yml"]
jobs:
compile:
strategy:
matrix:
zig_version: [0.11.0, master]
os: [ubuntu-latest]
include:
- os: windows-latest
experimental: true
continue-on-error: ${{ matrix.experimental }}
runs-on: ${{ matrix.os }}
steps:
- name: Set up Zig
uses: goto-bus-stop/[email protected]
with:
version: ${{ matrix.zig_version }}
- name: Check out repository
uses: actions/checkout@v3
- name: zig build
run: |
zig env
zig build
- name: zig build test
run: |
zig env
zig build test
- name: zig build cross
run: |
zig env
zig build cross