all: update macOS target triples

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-06-25 00:38:45 -07:00
parent 3e0fe63e63
commit d2ca4391e9
5 changed files with 7 additions and 7 deletions

View file

@ -13,7 +13,7 @@ jobs:
sudo apt install xz-utils sudo apt install xz-utils
sudo sh -c 'wget -c https://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.3798+a5e15eced.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin' sudo sh -c 'wget -c https://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.3798+a5e15eced.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
- name: x86_64-linux -> aarch64-macos - name: x86_64-linux -> aarch64-macos
run: zig build -Dtarget=aarch64-macos.12-none run: zig build -Dtarget=aarch64-macos
- name: test - name: test
run: | run: |
zig build test zig build test

View file

@ -13,7 +13,7 @@ jobs:
sudo apt install xz-utils sudo apt install xz-utils
sudo sh -c 'wget -c https://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.3798+a5e15eced.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin' sudo sh -c 'wget -c https://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.3798+a5e15eced.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
- name: x86_64-linux -> aarch64-macos - name: x86_64-linux -> aarch64-macos
run: zig build -Dtarget=aarch64-macos.12-none run: zig build -Dtarget=aarch64-macos
- name: test - name: test
run: | run: |
zig build test zig build test

View file

@ -13,7 +13,7 @@ jobs:
sudo apt install xz-utils sudo apt install xz-utils
sudo sh -c 'wget -c https://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.3798+a5e15eced.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin' sudo sh -c 'wget -c https://ziglang.org/builds/zig-linux-x86_64-0.11.0-dev.3798+a5e15eced.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
- name: x86_64-linux -> aarch64-macos - name: x86_64-linux -> aarch64-macos
run: zig build -Dtarget=aarch64-macos.12-none run: zig build -Dtarget=aarch64-macos
- name: test - name: test
run: zig build test run: zig build test
x86_64-windows: x86_64-windows:

View file

@ -21,7 +21,7 @@ jobs:
- name: Clone mach-glfw - name: Clone mach-glfw
run: rm libs/mach-glfw && git clone https://github.com/hexops/mach-glfw libs/mach-glfw run: rm libs/mach-glfw && git clone https://github.com/hexops/mach-glfw libs/mach-glfw
- name: install (debug) - name: install (debug)
run: zig build install -Dtarget=aarch64-macos.12-none run: zig build install -Dtarget=aarch64-macos
env: env:
AGREE: true AGREE: true
- name: upload (debug) - name: upload (debug)
@ -34,7 +34,7 @@ jobs:
RELEASE_NAME: aarch64-macos-none_debug RELEASE_NAME: aarch64-macos-none_debug
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: install (release-fast) - name: install (release-fast)
run: zig build install -Doptimize=ReleaseFast -Dtarget=aarch64-macos.12-none run: zig build install -Doptimize=ReleaseFast -Dtarget=aarch64-macos
env: env:
AGREE: true AGREE: true
- name: upload (release-fast) - name: upload (release-fast)

View file

@ -32,8 +32,8 @@ This will take ~10 minutes to finish (see the 'binary releases' section below.)
| Option | Description | | Option | Description |
|-------------------------------|------------------------------------------------------------| |-------------------------------|------------------------------------------------------------|
| `-Doptimize=ReleaseFast` | Build a release binary instead of a debug binary (default) | | `-Doptimize=ReleaseFast` | Build a release binary instead of a debug binary (default) |
| `-Dtarget=x86_64-macos.12` | Cross compile to macOS (Intel chipsets) | | `-Dtarget=x86_64-macos` | Cross compile to macOS (Intel chipsets) |
| `-Dtarget=aarch64-macos.12` | Cross compile to macOS (Apple Silicon) | | `-Dtarget=aarch64-macos` | Cross compile to macOS (Apple Silicon) |
| `-Dtarget=x86_64-linux-gnu` | Cross compile to x86_64 Linux (glibc) | | `-Dtarget=x86_64-linux-gnu` | Cross compile to x86_64 Linux (glibc) |
| `-Dtarget=x86_64-linux-musl` | Cross compile to x86_64 Linux (musl libc) | | `-Dtarget=x86_64-linux-musl` | Cross compile to x86_64 Linux (musl libc) |
| `-Dtarget=x86_64-windows-gnu` | Cross compile to x86_64 Windows | | `-Dtarget=x86_64-windows-gnu` | Cross compile to x86_64 Windows |