ci: trying to build macos
parent
1abaf87de9
commit
fb1b032929
|
|
@ -40,6 +40,29 @@ jobs:
|
||||||
- name: Test Build
|
- name: Test Build
|
||||||
run: nix develop -c zig build -Dstatic=true -Dtarget=${{ matrix.target }}
|
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:
|
test:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue