-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (40 loc) · 1.25 KB
/
Copy pathci.yml
File metadata and controls
44 lines (40 loc) · 1.25 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
name: CI
on: [push]
jobs:
test:
strategy:
matrix:
include:
- os: ubuntu-24.04-arm
- os: ubuntu-latest
- os: macos-latest
- os: macos-15-intel
- os: windows-11-arm
- os: windows-latest
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v6
# The zig 0.16 aarch64-windows binary and LLVM libs are broken,
# see https://codeberg.org/ziglang/zig/issues/31865.
# As a workaround x86_64 Zig is used via Windows ARM emulation.
- uses: mlugg/setup-zig@v2
if: matrix.os != 'windows-11-arm'
- name: Setup Zig
if: matrix.os == 'windows-11-arm'
run: |
curl -fsSLo zig.zip https://ziglang.org/download/0.16.0/zig-x86_64-windows-0.16.0.zip
unzip -q zig.zip -d zig-sdk
echo "$PWD/zig-sdk/zig-x86_64-windows-0.16.0" >> $GITHUB_PATH
- name: Fetch test-data
run: git submodule update --init
- name: Run tests
run: zig build test
- name: Run lookup example
run: zig build example_lookup
- name: Run scan example
run: zig build example_scan
- name: Run inspect example
run: zig build example_inspect