-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (53 loc) · 1.33 KB
/
test.yml
File metadata and controls
53 lines (53 loc) · 1.33 KB
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
50
51
52
53
on: [workflow_dispatch]
jobs:
test-from-project:
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v6
with: { fetch-depth: 0 }
- name: 'Create build.zig.zon'
run: |
cat >build.zig.zon <<EOF
.{
.name = "test-project"
.version = "0.0.0",
.minimum_zig_version = "0.13.0",
.paths = .{""},
.fingerprint = 0x43eaf07faceda5c3,
}
EOF
- name: 'Setup Zig'
uses: ./
with: { version: '0.13.0' }
- name: 'Check `zig version`'
run: |
if [ "$(zig version)" != '0.13.0' ]; then
echo "version mismatch: expected '0.13.0', got '$(zig version)'"
exit 1
fi
test:
runs-on: ubuntu-latest
strategy:
matrix:
zig_version:
- 'master'
- 'latest'
- '2024.5.0-mach'
- '0.14.0'
- '0.14.1' # zig-linux-x86_64 -> zig-x86_64-linux
- '0.15.0'
- '0.15.1' # armv7a -> arm (though testing on ARM is TODO!)
- '0.15.2' # some x.x.2
steps:
- name: 'Checkout'
uses: actions/checkout@v6
with: { fetch-depth: 0 }
- name: 'Setup Zig'
uses: ./
- name: 'Test `zig init`'
run: |
mkdir init
cd init
zig init
zig build test