-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (47 loc) · 1.11 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
46
47
48
49
name: ci
on:
pull_request:
branches:
- trunk
jobs:
examples:
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
runs-on: "${{ matrix.os }}"
steps:
- uses: tiawl/[email protected]
- uses: actions/checkout@v4
- uses: mlugg/setup-zig@v1
with:
version: ${{ env.zig_version }}
- name: Test building examples
shell: bash
run:
zig build --build-file "${GITHUB_WORKSPACE}/examples/build.zig"
build:
strategy:
matrix:
repo:
- spaceporn
os:
- ubuntu-latest
- windows-latest
zig_opts:
- ''
- '-Ddev'
- '-Dturbo'
runs-on: "${{ matrix.os }}"
steps:
- uses: tiawl/[email protected]
with:
repository: "${{ github.repository }}"
additional_zig_opts: "${{ matrix.zig_opts }}"
sha: "${{ github.event.pull_request.head.sha }}"
user: "${{ matrix.repo }}"
token: "${{ github.token }}"
test_build: 'true'
test_update: 'false'
test_fetch: 'false'