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
42
gpu-dawn/.github/workflows/ci.yml
vendored
42
gpu-dawn/.github/workflows/ci.yml
vendored
|
|
@ -20,13 +20,22 @@ jobs:
|
||||||
# sudo sh -c 'wget -c https://ziglang.org/builds/zig-linux-x86_64-0.10.0-dev.670+e1a535360.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.10.0-dev.670+e1a535360.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
|
||||||
# - 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
|
# - name: install (debug)
|
||||||
# run: zig build install -Dfrom-source=true
|
# run: zig build install -Dfrom-source=true
|
||||||
# - name: upload
|
# - name: upload (debug)
|
||||||
# run: |
|
# run: |
|
||||||
# mv zig-out/lib/libdawn.a zig-out/lib/libdawn_linux-x86_64.a
|
# mv zig-out/lib/libdawn.a zig-out/lib/libdawn_linux-x86_64_debug.a
|
||||||
# gzip -9 zig-out/lib/libdawn_linux-x86_64.a
|
# gzip -9 zig-out/lib/libdawn_linux-x86_64_debug.a
|
||||||
# gh release upload "release-$(git rev-parse --short HEAD)" zig-out/lib/libdawn_linux-x86_64.a.gz
|
# gh release upload "release-$(git rev-parse --short HEAD)" zig-out/lib/libdawn_linux-x86_64_debug.a.gz
|
||||||
|
# env:
|
||||||
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# - name: install (release-fast)
|
||||||
|
# run: zig build install -Dfrom-source=true -Drelease-fast=true
|
||||||
|
# - name: upload (release-fast)
|
||||||
|
# run: |
|
||||||
|
# mv zig-out/lib/libdawn.a zig-out/lib/libdawn_linux-x86_64_release-fast.a
|
||||||
|
# gzip -9 zig-out/lib/libdawn_linux-x86_64_release-fast.a
|
||||||
|
# gh release upload "release-$(git rev-parse --short HEAD)" zig-out/lib/libdawn_linux-x86_64_release-fast.a.gz
|
||||||
# env:
|
# env:
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# TODO(build-system): enable windows CI here once gpu-dawn builds under Windows
|
# TODO(build-system): enable windows CI here once gpu-dawn builds under Windows
|
||||||
|
|
@ -46,7 +55,7 @@ jobs:
|
||||||
# cd C:\
|
# cd C:\
|
||||||
# 7z x zig.zip
|
# 7z x zig.zip
|
||||||
# Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.10.0-dev.670+e1a535360\"
|
# Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.10.0-dev.670+e1a535360\"
|
||||||
# - name: install
|
# - name: install (debug)
|
||||||
# run: zig build install -Dfrom-source=true
|
# run: zig build install -Dfrom-source=true
|
||||||
# # TODO: upload step for Windows
|
# # TODO: upload step for Windows
|
||||||
x86_64-macos:
|
x86_64-macos:
|
||||||
|
|
@ -63,14 +72,25 @@ jobs:
|
||||||
sudo sh -c 'wget -c https://ziglang.org/builds/zig-macos-x86_64-0.10.0-dev.670+e1a535360.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
|
sudo sh -c 'wget -c https://ziglang.org/builds/zig-macos-x86_64-0.10.0-dev.670+e1a535360.tar.xz -O - | tar -xJ --strip-components=1 -C /usr/local/bin'
|
||||||
- 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
|
- name: install (debug)
|
||||||
run: zig build install -Dfrom-source=true
|
run: zig build install -Dfrom-source=true
|
||||||
env:
|
env:
|
||||||
AGREE: true
|
AGREE: true
|
||||||
- name: upload
|
- name: upload (debug)
|
||||||
run: |
|
run: |
|
||||||
mv zig-out/lib/libdawn.a zig-out/lib/libdawn_macos-x86_64.a
|
mv zig-out/lib/libdawn.a zig-out/lib/libdawn_macos-x86_64_debug.a
|
||||||
gzip -9 zig-out/lib/libdawn_macos-x86_64.a
|
gzip -9 zig-out/lib/libdawn_macos-x86_64_debug.a
|
||||||
gh release upload "release-$(git rev-parse --short HEAD)" zig-out/lib/libdawn_macos-x86_64.a.gz
|
gh release upload "release-$(git rev-parse --short HEAD)" zig-out/lib/libdawn_macos-x86_64_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-x86_64_release-fast.a
|
||||||
|
gzip -9 zig-out/lib/libdawn_macos-x86_64_release-fast.a
|
||||||
|
gh release upload "release-$(git rev-parse --short HEAD)" zig-out/lib/libdawn_macos-x86_64_release-fast.a.gz
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
||||||
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
|
zig version
|
||||||
- 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
|
- name: install (debug)
|
||||||
run: zig build install -Dfrom-source=true
|
run: zig build install -Dfrom-source=true
|
||||||
env:
|
env:
|
||||||
AGREE: true
|
AGREE: true
|
||||||
- name: upload
|
- name: upload (debug)
|
||||||
run: |
|
run: |
|
||||||
mv zig-out/lib/libdawn.a zig-out/lib/libdawn_macos-aarch64.a
|
mv zig-out/lib/libdawn.a zig-out/lib/libdawn_macos-aarch64_debug.a
|
||||||
gzip -9 zig-out/lib/libdawn_macos-aarch64.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.a.gz
|
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:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue