Skip to content

M1

M1 #460

Workflow file for this run

name: M1
on:
workflow_run:
workflows: ["Draft release"]
types:
- completed
jobs:
aarch64-macos:
if: ${{ github.repository == 'hexops/mach-gpu-dawn' && github.event.workflow_run.conclusion == 'success' }}
runs-on: [self-hosted, macOS, ARM64]
defaults:
run:
shell: "/usr/bin/arch -arch arm64e /bin/bash --noprofile --norc -eo pipefail {0}"
steps:
- name: Checkout
uses: actions/checkout@v2
- name: install (debug)
run: DAWN_FROM_SOURCE=true zig build install -Dtarget=aarch64-macos
- name: upload (debug)
run: |
./dev/upload-release.sh
# HACK: without this we encounter error: StreamTooLong on the next `zig build` below.
# no clue why.
rm -rf zig-cache zig-out
env:
RELEASE_NAME: aarch64-macos-none_debug
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: install (release-fast)
run: DAWN_FROM_SOURCE=true zig build install -Doptimize=ReleaseFast -Dtarget=aarch64-macos
- name: upload (release-fast)
run: ./dev/upload-release.sh
env:
RELEASE_NAME: aarch64-macos-none_release-fast
UPLOAD_HEADERS: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}