diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7de0030c7..944bd537d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,6 +40,29 @@ jobs: - name: Test Build run: nix develop -c zig build -Dstatic=true -Dtarget=${{ matrix.target }} + build-macos: + runs-on: macos-12 + #needs: test + env: + # Needed for macos SDK + AGREE: "true" + steps: + - name: Checkout code + uses: actions/checkout@v3 + 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@v19 + 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 -Dstatic=true + test: strategy: matrix: