ci: use macos tester
This commit is contained in:
parent
7110b7c5f2
commit
24be26c3a7
1 changed files with 11 additions and 23 deletions
34
.github/workflows/test.yml
vendored
34
.github/workflows/test.yml
vendored
|
@ -2,32 +2,20 @@ on: [push, pull_request]
|
||||||
name: Test
|
name: Test
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
runs-on: macos-12
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest]
|
|
||||||
|
|
||||||
target: [
|
|
||||||
aarch64-macos,
|
|
||||||
x86_64-macos,
|
|
||||||
]
|
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
env:
|
env:
|
||||||
# Needed for macos SDK
|
# Needed for macos SDK
|
||||||
AGREE: "true"
|
AGREE: "true"
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
submodules: recursive
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
# Install Nix and use that to run our tests so our environment matches exactly.
|
# Install Nix and use that to run our tests so our environment matches exactly.
|
||||||
- uses: cachix/install-nix-action@v18
|
- uses: cachix/install-nix-action@v23
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
|
|
||||||
# Cross-compile the binary. We always use static building for this
|
# Cross-compile the binary. We always use static building for this
|
||||||
# because its the only way to access the headers.
|
# because its the only way to access the headers.
|
||||||
- name: Test Build
|
- name: Test
|
||||||
run: nix develop -c zig build -Dtarget=${{ matrix.target }}
|
run: nix develop -c zig build test --summary all
|
||||||
|
|
Loading…
Add table
Reference in a new issue