-
Notifications
You must be signed in to change notification settings - Fork 22
37 lines (33 loc) · 975 Bytes
/
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
name: Build Dawn
on: workflow_dispatch
jobs:
build:
runs-on: macos-latest
env:
WORKING_DIRECTORY: ./package
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: r22b
- name: Setup Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Build Dawn
working-directory: ${{ env.WORKING_DIRECTORY }}/
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: |
${{ env.WORKING_DIRECTORY }}/libs
${{ env.WORKING_DIRECTORY }}/cpp/dawn
${{ env.WORKING_DIRECTORY }}/cpp/webgpu