Skip to content

Build Dawn

Build Dawn #27

Workflow file for this run

name: Build Dawn
on: workflow_dispatch
jobs:
build:
runs-on: macos-latest-large
steps:
- name: checkout
uses: actions/checkout@v2
with:
submodules: true
- 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@v2
with:
name: dawn-libs
path: |
packages/webgpu/libs/android
packages/webgpu/libs/ios/*.xcframework
packages/webgpu/cpp/dawn
packages/webgpu/cpp/webgpu