Build Dawn #39
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Dawn | |
on: workflow_dispatch | |
jobs: | |
build: | |
runs-on: macos-latest-large | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Initialize Dawn's abseil-cpp submodule | |
run: | | |
cd externals/dawn | |
git submodule update --init third_party/abseil-cpp | |
- name: Setup Android NDK | |
id: setup-ndk | |
uses: nttld/setup-ndk@v1 | |
with: | |
ndk-version: r26d | |
- name: Set ANDROID_NDK | |
run: echo "ANDROID_NDK=$ANDROID_HOME/ndk-bundle" >> $GITHUB_ENV | |
- name: Setup Ninja | |
uses: seanmiddleditch/gha-setup-ninja@master | |
- uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
cache-dependency-path: yarn.lock | |
- name: Install Package | |
run: yarn install --frozen-lockfile | |
- name: Build Dawn | |
working-directory: packages/webgpu | |
env: | |
ANDROID_NDK: ${{ steps.setup-ndk.outputs.ndk-path }} | |
run: yarn build-dawn | |
- name: Upload artifacts - Dawn Library Files | |
if: github.ref == 'refs/heads/main' | |
uses: actions/upload-artifact@v4 | |
with: | |
name: dawn-libs | |
path: | | |
packages/webgpu/libs/dawn.json | |
packages/webgpu/libs/android | |
packages/webgpu/libs/apple/*.xcframework | |
packages/webgpu/cpp/dawn | |
packages/webgpu/cpp/webgpu |