CI: add linux/windows -> aarch64-macos

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2021-07-25 17:18:46 -07:00 committed by Stephen Gutekanst
parent 356c2e673f
commit 68b359f8c3

View file

@ -15,6 +15,10 @@ jobs:
run: zig build test -Dtarget=x86_64-macos run: zig build test -Dtarget=x86_64-macos
env: env:
AGREE: true AGREE: true
- name: x86_64-linux -> aarch64-macos
run: zig build test -Dtarget=aarch64-macos
env:
AGREE: true
# Disabled for now, see https://github.com/hexops/mach/issues/4 # Disabled for now, see https://github.com/hexops/mach/issues/4
# - name: mach::test # - name: mach::test
# run: zig build test # run: zig build test
@ -33,12 +37,18 @@ jobs:
cd C:\ cd C:\
7z x zig.zip 7z x zig.zip
Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.9.0-dev.441+7b5d139fd\" Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.9.0-dev.441+7b5d139fd\"
- name: cross x86_64-windows -> x86_64-macos - name: x86_64-windows -> x86_64-macos
# TODO(slimsag): bug: `zig build test -Dtarget=x86_64-macos` fails on Windows with `error: Unexpected` # TODO(slimsag): bug: `zig build test -Dtarget=x86_64-macos` fails on Windows with `error: Unexpected`
# Maybe an issue in final linking? Maybe it's trying to run the Mac binary? Needs investigation # Maybe an issue in final linking? Maybe it's trying to run the Mac binary? Needs investigation
run: zig build install -Dtarget=x86_64-macos run: zig build install -Dtarget=x86_64-macos
env: env:
AGREE: true AGREE: true
- name: x86_64-windows -> aarch64-macos
# TODO(slimsag): bug: `zig build test -Dtarget=aarch64-macos` fails on Windows with `error: Unexpected`
# Maybe an issue in final linking? Maybe it's trying to run the Mac binary? Needs investigation
run: zig build install -Dtarget=aarch64-macos
env:
AGREE: true
# Disabled for now, see https://github.com/hexops/mach/issues/5 # Disabled for now, see https://github.com/hexops/mach/issues/5
# - name: mach::test # - name: mach::test
# run: zig build test # run: zig build test
@ -57,7 +67,7 @@ jobs:
run: zig build test run: zig build test
env: env:
AGREE: true AGREE: true
- name: cross x86_64-macos -> aarch64-macos - name: x86_64-macos -> aarch64-macos
run: zig build test -Dtarget=aarch64-macos run: zig build test -Dtarget=aarch64-macos
env: env:
AGREE: true AGREE: true