forked from google/angle
-
Notifications
You must be signed in to change notification settings - Fork 3
96 lines (93 loc) · 2.83 KB
/
Copy pathbuild.yml
File metadata and controls
96 lines (93 loc) · 2.83 KB
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: Build ANGLE
on:
push:
branches:
- main
pull_request:
types: [ opened, reopened ]
workflow_dispatch:
jobs:
build:
# This requires about 25GB to properly build. Please make sure the runner can provide that.
runs-on: self-hosted
strategy:
matrix:
include:
- os: android
arch: arm64
- os: android
arch: arm
- os: android
arch: x86
- os: android
arch: x64
- os: ios
arch: arm64
steps:
- name: Checkout
uses: actions/checkout@v4
# This bit always takes forever to finish cloning so lets just cache it
- name: Cache third_party/llvm
uses: actions/cache@v4
with:
path: third_party/llvm
key: ${{ matrix.os }}-third_party-llvm
- name: Cache third_party/VK-GL-CTS
uses: actions/cache@v4
with:
path: third_party/VK-GL-CTS
key: ${{ matrix.os }}-third_party-VK-GL-CTS
- name: Cache third_party/SwiftShader
uses: actions/cache@v4
with:
path: third_party/SwiftShader
key: ${{ matrix.os }}-third_party-SwiftShader
- name: Cache third_party/dawn
uses: actions/cache@v4
with:
path: third_party/dawn
key: ${{ matrix.os }}-third_party-dawn
- name: Cache depot_tools
uses: actions/cache@v4
with:
path: depot_tools
key: ${{ runner.os }}-depot-tools
# This should only be rarely ran so its here so the cache priority still is somewhat biggest to smallest
- name: Install depot_tools
run: |
if [ ! -d "depot_tools" ] ; then
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
fi
echo "$PWD/depot_tools" >> $GITHUB_PATH
- name: Cache tools
uses: actions/cache@v4
with:
path: tools
key: ${{ matrix.os }}-tools
- name: Cache build
uses: actions/cache@v4
with:
path: build
key: ${{ matrix.os }}-build
- name: Fetch ANGLE and dependencies
run: |
gclient config --spec 'solutions = [
{
"name": ".",
"url": "https://chromium.googlesource.com/angle/angle.git",
"deps_file": "DEPS",
"managed": False,
"custom_vars": {},
},
]
target_os = ["${{ matrix.os }}"]'
gclient sync -Rf
- name: Build ANGLE
run: |
gn gen out/${{ matrix.os }}-${{ matrix.arch }}
autoninja -C out/${{ matrix.os }}-${{ matrix.arch }}
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: ANGLE-${{ matrix.os }}-${{ matrix.arch }}
path: out/${{ matrix.os }}-${{ matrix.arch }}