-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (45 loc) · 1.43 KB
/
macos-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
name: macos-arm64
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: '0 0 * * 0'
jobs:
build-macos-arm64:
runs-on: macos-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
run: |
export PATH="$(pwd)/depot_tools:$PATH"
python scripts/bootstrap.py
gclient sync
gn gen out/Release --args="is_debug=false target_cpu=\"arm64\" angle_build_all=false"
autoninja -C out/Release
- name: Pack
run: |
mkdir angle-macos-arm64
mkdir angle-macos-arm64/dist
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
find out/Release -name "*.TOC" -delete
mv -f out/Release/* angle-macos-arm64/dist/
cp -rf include angle-macos-arm64/
find angle-macos-arm64 -name ".clang-format" -delete
find angle-macos-arm64 -name "*.md" -delete
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: angle-macos-arm64
path: angle-macos-arm64