CI: rename macos-gnu target -> macos-none

Reflecting breaking change in latest version of Zig

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2022-05-31 03:05:34 -07:00 committed by Stephen Gutekanst
parent 3a81754973
commit 539b643267
6 changed files with 16 additions and 16 deletions

View file

@ -21,11 +21,11 @@ jobs:
sudo apt install xz-utils
sudo sh -c 'wget -c https://ziglang.org/builds/zig-linux-x86_64-0.10.0-dev.2439+c84f5a5f9.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
- name: x86_64-linux -> x86_64-macos
run: cd ${{ matrix.project }} && zig build test -Dtarget=x86_64-macos.12...12-gnu
run: cd ${{ matrix.project }} && zig build test -Dtarget=x86_64-macos.12-none
env:
AGREE: true
- name: x86_64-linux -> aarch64-macos
run: cd ${{ matrix.project }} && zig build test -Dtarget=aarch64-macos.12...12-gnu
run: cd ${{ matrix.project }} && zig build test -Dtarget=aarch64-macos.12-none
env:
AGREE: true
- name: x86_64-linux -> x86_64-windows
@ -65,11 +65,11 @@ jobs:
7z x zig.zip
Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.10.0-dev.2017+a0a2ce92c\"
- name: x86_64-windows -> x86_64-macos
run: cd ${{ matrix.project }} && zig build test -Dtarget='x86_64-macos.12...12-gnu'
run: cd ${{ matrix.project }} && zig build test -Dtarget='x86_64-macos.12-none'
env:
AGREE: true
- name: x86_64-windows -> aarch64-macos
run: cd ${{ matrix.project }} && zig build test -Dtarget='aarch64-macos.12...12-gnu'
run: cd ${{ matrix.project }} && zig build test -Dtarget='aarch64-macos.12-none'
env:
AGREE: true
- name: x86_64-windows -> x86_64-linux
@ -105,7 +105,7 @@ jobs:
# env:
# AGREE: true
- name: x86_64-macos -> aarch64-macos
run: cd ${{ matrix.project }} && zig build test -Dtarget=aarch64-macos.12...12-gnu
run: cd ${{ matrix.project }} && zig build test -Dtarget=aarch64-macos.12-none
env:
AGREE: true
- name: x86_64-macos -> x86_64-windows

View file

@ -33,7 +33,7 @@ jobs:
env:
AGREE: true
- name: aarch64-macos -> x86_64-macos
run: zig build test -Dtarget=x86_64-macos.12-gnu
run: zig build test -Dtarget=x86_64-macos.12-none
env:
AGREE: true
- name: aarch64-macos -> x86_64-windows

View file

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

View file

@ -161,13 +161,13 @@ jobs:
- name: Clone mach-glfw
run: rm libs/mach-glfw && git clone https://github.com/hexops/mach-glfw libs/mach-glfw
- name: install (debug)
run: zig build install -Ddawn-from-source=true -Dtarget=x86_64-macos.12-gnu
run: zig build install -Ddawn-from-source=true -Dtarget=x86_64-macos.12-none
env:
AGREE: true
- name: upload (debug)
run: ./dev/upload-release.sh
env:
RELEASE_NAME: x86_64-macos-gnu_debug
RELEASE_NAME: x86_64-macos-none_debug
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
x86_64-macos_release-fast:
runs-on: macos-latest
@ -185,11 +185,11 @@ jobs:
- name: Clone mach-glfw
run: rm libs/mach-glfw && git clone https://github.com/hexops/mach-glfw libs/mach-glfw
- name: install (release-fast)
run: zig build install -Ddawn-from-source=true -Drelease-fast=true -Dtarget=x86_64-macos.12-gnu
run: zig build install -Ddawn-from-source=true -Drelease-fast=true -Dtarget=x86_64-macos.12-none
env:
AGREE: true
- name: upload (release-fast)
run: ./dev/upload-release.sh
env:
RELEASE_NAME: x86_64-macos-gnu_release-fast
RELEASE_NAME: x86_64-macos-none_release-fast
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -25,21 +25,21 @@ jobs:
- name: Clone mach-glfw
run: rm libs/mach-glfw && git clone https://github.com/hexops/mach-glfw libs/mach-glfw
- name: install (debug)
run: zig build install -Ddawn-from-source=true -Dtarget=aarch64-macos.12-gnu
run: zig build install -Ddawn-from-source=true -Dtarget=aarch64-macos.12-none
env:
AGREE: true
- name: upload (debug)
run: ./dev/upload-release.sh
env:
RELEASE_NAME: aarch64-macos-gnu_debug
RELEASE_NAME: aarch64-macos-none_debug
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: install (release-fast)
run: zig build install -Ddawn-from-source=true -Drelease-fast=true -Dtarget=aarch64-macos.12-gnu
run: zig build install -Ddawn-from-source=true -Drelease-fast=true -Dtarget=aarch64-macos.12-none
env:
AGREE: true
- name: upload (release-fast)
run: ./dev/upload-release.sh
env:
RELEASE_NAME: aarch64-macos-gnu_release-fast
RELEASE_NAME: aarch64-macos-none_release-fast
UPLOAD_HEADERS: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View file

@ -323,7 +323,7 @@ fn downloadBinary(
const github_triple = try std.mem.replaceOwned(u8, allocator, zig_triple, "...", "---");
// Compose the download URL, e.g.:
// https://github.com/hexops/mach-gpu-dawn/releases/download/release-6b59025/libdawn_x86_64-macos-gnu_debug.a.gz
// https://github.com/hexops/mach-gpu-dawn/releases/download/release-6b59025/libdawn_x86_64-macos-none_debug.a.gz
const lib_prefix = if (is_windows) "dawn_" else "libdawn_";
const lib_ext = if (is_windows) ".lib" else ".a";
const lib_file_name = if (is_windows) "dawn.lib" else "libdawn.a";