mach/gpu-dawn/.github/workflows/m1_ci.yml
Stephen Gutekanst 4a5cc73edc gpu-dawn: CI: M1: skip sudo when cleaning up git submodules
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
2022-02-12 15:21:16 -07:00

35 lines
1.1 KiB
YAML

name: CI M1
on:
workflow_run:
workflows: ["Draft release"]
types:
- completed
jobs:
aarch64-macos:
runs-on: [self-hosted, macOS, ARM64]
defaults:
run:
shell: "/usr/bin/arch -arch arm64e /bin/bash --noprofile --norc -eo pipefail {0}"
steps:
- name: Clean repository submodules
# See https://github.com/actions/checkout/issues/385
run: |
rm -rf $GITHUB_WORKSPACE && mkdir $GITHUB_WORKSPACE
- name: Checkout
uses: actions/checkout@v2
- name: Setup Zig
run: |
zig version
- name: Clone mach-glfw
run: rm libs/mach-glfw && git clone https://github.com/hexops/mach-glfw libs/mach-glfw
- name: install
run: zig build install -Dfrom-source=true
env:
AGREE: true
- name: upload
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
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}