-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (49 loc) · 1.52 KB
/
tests.yml
File metadata and controls
57 lines (49 loc) · 1.52 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
54
55
56
57
name: Run Tests
on:
workflow_dispatch:
push:
branches:
- develop
tags:
- 'v*'
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
zig-url: https://ziglang.org/download/0.16.0/zig-x86_64-linux-0.16.0.tar.xz
zig-dir: zig-x86_64-linux-0.16.0
- os: macos-latest
zig-url: https://ziglang.org/download/0.16.0/zig-aarch64-macos-0.16.0.tar.xz
zig-dir: zig-aarch64-macos-0.16.0
- os: windows-latest
zig-url: https://ziglang.org/download/0.16.0/zig-x86_64-windows-0.16.0.zip
zig-dir: zig-x86_64-windows-0.16.0
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Zig 0.16.0 (Unix)
if: runner.os != 'Windows'
run: |
curl -sSfL ${{ matrix.zig-url }} | tar -xJ
echo "$PWD/${{ matrix.zig-dir }}" >> "$GITHUB_PATH"
- name: Install Zig 0.16.0 (Windows)
if: runner.os == 'Windows'
shell: pwsh
run: |
Invoke-WebRequest -Uri "${{ matrix.zig-url }}" -OutFile zig.zip
Expand-Archive zig.zip -DestinationPath .
echo "$PWD\${{ matrix.zig-dir }}" | Out-File -Append -FilePath $env:GITHUB_PATH
- name: Run tests
run: zig build test --summary all