From 24be26c3a779f8c5396f92ceb0a7f02c4a0b18ef Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 20 Oct 2023 15:54:57 -0700 Subject: [PATCH] ci: use macos tester --- .github/workflows/test.yml | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e4e736d..f6ec170 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,32 +2,20 @@ on: [push, pull_request] name: Test jobs: build: - strategy: - fail-fast: false - matrix: - os: [ubuntu-latest] - - target: [ - aarch64-macos, - x86_64-macos, - ] - runs-on: ${{ matrix.os }} + runs-on: macos-12 env: # Needed for macos SDK AGREE: "true" steps: - - name: Checkout code - uses: actions/checkout@v3 - with: - submodules: recursive - fetch-depth: 0 + - name: Checkout code + uses: actions/checkout@v4 - # Install Nix and use that to run our tests so our environment matches exactly. - - uses: cachix/install-nix-action@v18 - with: - nix_path: nixpkgs=channel:nixos-unstable + # 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 - # Cross-compile the binary. We always use static building for this - # because its the only way to access the headers. - - name: Test Build - run: nix develop -c zig build -Dtarget=${{ matrix.target }} + # Cross-compile the binary. We always use static building for this + # because its the only way to access the headers. + - name: Test + run: nix develop -c zig build test --summary all