-
Notifications
You must be signed in to change notification settings - Fork 22
47 lines (40 loc) · 1.21 KB
/
build-dawn.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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@v4
with:
name: dawn-libs
path: |
packages/webgpu/libs/android
packages/webgpu/libs/ios/*.xcframework
packages/webgpu/cpp/dawn
packages/webgpu/cpp/webgpu