gpu-dawn: CI: build+upload debug & release-fast binary releases
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
4a5cc73edc
commit
01ca3b8beb
2 changed files with 47 additions and 16 deletions
21
gpu-dawn/.github/workflows/m1_ci.yml
vendored
21
gpu-dawn/.github/workflows/m1_ci.yml
vendored
|
|
@ -22,14 +22,25 @@ jobs:
|
|||
zig version
|
||||
- name: Clone mach-glfw
|
||||
run: rm libs/mach-glfw && git clone https://github.com/hexops/mach-glfw libs/mach-glfw
|
||||
- name: install
|
||||
- name: install (debug)
|
||||
run: zig build install -Dfrom-source=true
|
||||
env:
|
||||
AGREE: true
|
||||
- name: upload
|
||||
- name: upload (debug)
|
||||
run: |
|
||||
mv zig-out/lib/libdawn.a zig-out/lib/libdawn_macos-aarch64.a
|
||||
gzip -9 zig-out/lib/libdawn_macos-aarch64.a
|
||||
gh release upload "release-$(git rev-parse --short HEAD)" zig-out/lib/libdawn_macos-aarch64.a.gz
|
||||
mv zig-out/lib/libdawn.a zig-out/lib/libdawn_macos-aarch64_debug.a
|
||||
gzip -9 zig-out/lib/libdawn_macos-aarch64_debug.a
|
||||
gh release upload "release-$(git rev-parse --short HEAD)" zig-out/lib/libdawn_macos-aarch64_debug.a.gz
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: install (release-fast)
|
||||
run: zig build install -Dfrom-source=true -Drelease-fast=true
|
||||
env:
|
||||
AGREE: true
|
||||
- name: upload (release-fast)
|
||||
run: |
|
||||
mv zig-out/lib/libdawn.a zig-out/lib/libdawn_macos-aarch64_release-fast.a
|
||||
gzip -9 zig-out/lib/libdawn_macos-aarch64_release-fast.a
|
||||
gh release upload "release-$(git rev-parse --short HEAD)" zig-out/lib/libdawn_macos-aarch64_release-fast.a.gz
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue