-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (53 loc) · 1.8 KB
/
windows-arm64.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
48
49
50
51
52
53
54
55
name: windows-arm64
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 * * 0'
jobs:
build-windows-arm64:
runs-on: windows-latest
steps:
- name: Checkout sources
run: |
git clone https://github.com/google/angle .
- name: Fetch depot_tools
run: |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
- name: Build
shell: cmd
run: |
set PATH=%cd%\depot_tools;%PATH%
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
set vs2019_install=C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise
set WINDOWSSDKDIR=C:\Program Files (x86)\Windows Kits\10
cmd /c gclient
cmd /c python scripts/bootstrap.py
cmd /c gclient sync
cmd /c gn gen out/Release --args="is_debug=false target_cpu=\"arm64\" angle_build_all=false"
cmd /c autoninja -C out/Release
- name: Pack
shell: bash
run: |
mkdir angle-windows-arm64
mkdir angle-windows-arm64/dist
rm -rf out/Release/cdb
rm -rf out/Release/gen
rm -rf out/Release/obj
rm -rf out/Release/args.gn
rm -rf out/Release/build.ninja
rm -rf out/Release/build.ninja.d
rm -rf out/Release/toolchain.ninja
rm -rf out/Release/environment.*
find out/Release -name "*.pdb" -delete
mv -f out/Release/* angle-windows-arm64/dist/
cp -rf include angle-windows-arm64/
find angle-windows-arm64 -name ".clang-format" -delete
find angle-windows-arm64 -name "*.md" -delete
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: angle-windows-arm64
path: angle-windows-arm64