update to Zig after #18085 (rework std.atomic) and #18076 (absorb IterableDir into Dir) #254
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: [push, pull_request] | |
name: Test | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
target: [ | |
aarch64-linux-gnu, | |
aarch64-linux-musl, | |
x86_64-linux-gnu, | |
x86_64-linux-musl, | |
aarch64-macos, | |
x86_64-macos, | |
wasm32-wasi, | |
x86_64-windows-gnu | |
# Broken but not in any obvious way: | |
# x86-linux-gnu, | |
# x86-linux-musl, | |
# x86-windows, | |
] | |
runs-on: ${{ matrix.os }} | |
needs: [test-x86_64-linux, test-x86_64-windows] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
# Install Nix and use that to run our tests so our environment matches exactly. | |
- uses: cachix/install-nix-action@v23 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
# Run our checks to catch quick issues | |
- run: nix flake check | |
# Run our go tests within the context of the dev shell from the flake. This | |
# will ensure we have all our dependencies. | |
- name: test | |
run: nix develop -c zig build --summary all -Dtarget=${{ matrix.target }} | |
test-x86_64-linux: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
# Install Nix and use that to run our tests so our environment matches exactly. | |
- uses: cachix/install-nix-action@v23 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
# Run our checks to catch quick issues | |
- run: nix flake check | |
# Run our go tests within the context of the dev shell from the flake. This | |
# will ensure we have all our dependencies. | |
- name: test | |
run: nix develop -c zig build test --summary all | |
- name: test wasi | |
run: nix develop -c zig build test -Dtarget=wasm32-wasi -fwasmtime --summary all | |
- name: build all benchmarks and examples | |
run: nix develop -c zig build -Dexample -Dbench --summary all | |
# Run a full build to ensure that works | |
- run: nix build | |
test-x86_64-windows: | |
strategy: | |
matrix: | |
os: [windows-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Install zig | |
uses: goto-bus-stop/setup-zig@v2 | |
with: | |
version: 0.12.0-dev.1245+a07f288eb | |
- name: test | |
run: zig build test --summary all | |
- name: build all benchmarks and examples | |
run: zig build -Dexample -Dbench --summary all |