ci: only test pkgs on Linux

This commit is contained in:
Mitchell Hashimoto
2025-01-02 15:08:29 -08:00
parent 22c2fe9610
commit 0ef24f3c75

View File

@ -484,7 +484,7 @@ jobs:
fail-fast: false fail-fast: false
matrix: matrix:
pkg: ["wuffs"] pkg: ["wuffs"]
name: Run pkg/${{ matrix.pkg }} tests on Linux name: Test pkg/${{ matrix.pkg }}
runs-on: namespace-profile-ghostty-sm runs-on: namespace-profile-ghostty-sm
needs: test needs: test
env: env:
@ -513,28 +513,3 @@ jobs:
- name: Test ${{ matrix.pkg }} Build - name: Test ${{ matrix.pkg }} Build
run: | run: |
nix develop -c sh -c "cd pkg/${{ matrix.pkg }} ; zig build test" nix develop -c sh -c "cd pkg/${{ matrix.pkg }} ; zig build test"
test-pkg-macos:
strategy:
fail-fast: false
matrix:
pkg: ["wuffs"]
name: Run pkg/${{ matrix.pkg }} tests on macOS
runs-on: namespace-profile-ghostty-macos
needs: test
steps:
- 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@v30
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: cachix/cachix-action@v15
with:
name: ghostty
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
- name: Test ${{ matrix.pkg }} Build
run: |
nix develop -c sh -c "cd pkg/${{ matrix.pkg }} ; zig build test"