-
Notifications
You must be signed in to change notification settings - Fork 2
251 lines (247 loc) · 7.78 KB
/
build-and-release.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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
name: Build and release v8
on: workflow_dispatch
jobs:
build_macos_arm64:
name: macOS-arm64
runs-on: macos-14
steps:
- name: Install Depot Tools
uses: newkdev/[email protected]
- uses: actions/setup-python@v5
with:
python-version: '3.11.7'
- run: |
echo 'solutions = [
{
"name": "v8",
"url": "https://github.com/openwebf/v8.git",
"deps_file": "DEPS",
"managed": False,
"custom_deps": {}
},
]' > .gclient
- run: cat .gclient
- run: ls -la
- run: gclient sync && cd v8
- name: Generate build dir
run: cd v8 && ./tools/dev/v8gen.py arm64.release -vv
- run: cd v8 && rm ./out.gn/arm64.release/args.gn
- run: |
echo 'is_component_build = true
is_debug = false
target_cpu = "arm64"
v8_target_cpu = "arm64"
use_goma = false
v8_enable_backtrace = true
v8_enable_i18n_support = false
v8_use_zlib = false
use_custom_libcxx = false
mac_sdk_min = "14.0"
mac_min_system_version = "14.0"
mac_deployment_target = "14.0"
v8_enable_i18n_support = false
symbol_level = 0
v8_enable_webassembly = false
v8_enable_disassembler = false
v8_enable_object_print = false
v8_enable_verify_heap = false
dcheck_always_on = false
v8_enable_pointer_compression = false
v8_use_external_startup_data = true' > v8/out.gn/arm64.release/args.gn
- run: cat v8/out.gn/arm64.release/args.gn
- name: Setup Ninja
uses: ashutoshvarma/setup-ninja@master
with:
version: 1.10.0
- name: Build
run: ninja -C ./v8/out.gn/arm64.release
- uses: actions/upload-artifact@v3
with:
name: v8_macos_arm64
path: |
v8/out.gn/arm64.release/libv8.dylib
v8/out.gn/arm64.release/libv8_libbase.dylib
v8/out.gn/arm64.release/libv8_libplatform.dylib
v8/out.gn/arm64.release/libthird_party_abseil-cpp_absl.dylib
v8/out.gn/arm64.release/d8
v8/include
v8/out.gn/arm64.release/mkgrokdump
v8/out.gn/arm64.release/mksnapshot
v8/out.gn/arm64.release/torque
v8/out.gn/arm64.release/torque-language-server
build_macos_arm64_debug:
name: macOS-arm64_debug
runs-on: macos-14
steps:
- name: Install Depot Tools
uses: newkdev/[email protected]
- uses: actions/setup-python@v5
with:
python-version: '3.11.7'
- run: |
echo 'solutions = [
{
"name": "v8",
"url": "https://github.com/openwebf/v8.git",
"deps_file": "DEPS",
"managed": False,
"custom_deps": {}
},
]' > .gclient
- run: cat .gclient
- run: ls -la
- run: gclient sync && cd v8
- name: Generate build dir
run: cd v8 && ./tools/dev/v8gen.py arm64.release -vv
- run: cd v8 && rm ./out.gn/arm64.release/args.gn
- run: |
echo 'is_component_build = true
is_debug = true
target_cpu = "arm64"
v8_target_cpu = "arm64"
use_goma = false
v8_enable_backtrace = true
v8_enable_i18n_support = false
v8_use_zlib = false
use_custom_libcxx = false
mac_sdk_min = "14.0"
mac_min_system_version = "14.0"
mac_deployment_target = "14.0"
v8_enable_i18n_support = false
symbol_level = 2
v8_enable_webassembly = false
v8_enable_disassembler = false
v8_enable_object_print = false
v8_enable_verify_heap = false
dcheck_always_on = false
v8_enable_pointer_compression = false
v8_use_external_startup_data = true' > v8/out.gn/arm64.release/args.gn
- run: cat v8/out.gn/arm64.release/args.gn
- name: Setup Ninja
uses: ashutoshvarma/setup-ninja@master
with:
version: 1.10.0
- name: Build
run: ninja -C ./v8/out.gn/arm64.release
- uses: actions/upload-artifact@v3
with:
name: v8_macos_arm64_debug
path: |
v8/out.gn/arm64.release/libv8.dylib
v8/out.gn/arm64.release/libv8_libbase.dylib
v8/out.gn/arm64.release/libv8_libplatform.dylib
v8/out.gn/arm64.release/libthird_party_abseil-cpp_absl.dylib
v8/out.gn/arm64.release/d8
v8/include
v8/out.gn/arm64.release/mkgrokdump
v8/out.gn/arm64.release/mksnapshot
v8/out.gn/arm64.release/torque
v8/out.gn/arm64.release/torque-language-server
build_android_arm64:
name: android-arm64
runs-on: ubuntu-latest
steps:
- name: Install Depot Tools
uses: newkdev/[email protected]
- uses: actions/setup-python@v5
with:
python-version: '3.11.7'
- uses: nttld/setup-ndk@v1
with:
ndk-version: r16b
- run: |
echo 'solutions = [
{
"name": "v8",
"url": "https://github.com/openwebf/v8.git",
"deps_file": "DEPS",
"managed": False,
"custom_deps": {}
},
]
target_os = ["android"]
' > .gclient
- run: cat .gclient
- run: gclient sync && cd v8
- name: Generate build dir
run: cd v8 && ./tools/dev/v8gen.py arm64.release -vv
- run: cd v8 && rm ./out.gn/arm64.release/args.gn
- run: |
echo 'is_component_build = true
is_debug = false
target_cpu = "arm64"
target_os = "android"
v8_target_cpu = "arm64"
use_goma = false
v8_enable_backtrace = true
v8_enable_i18n_support = false
v8_use_zlib = true
v8_enable_i18n_support = false
symbol_level = 0
v8_enable_webassembly = false
v8_enable_disassembler = false
v8_enable_object_print = false
v8_enable_snapshot_compression = true
v8_enable_verify_heap = false
dcheck_always_on = false
v8_enable_pointer_compression = false
v8_use_external_startup_data = true' > v8/out.gn/arm64.release/args.gn
- run: cat v8/out.gn/arm64.release/args.gn
- name: Setup Ninja
uses: ashutoshvarma/setup-ninja@master
with:
version: 1.10.0
- name: Build
run: ninja -C ./v8/out.gn/arm64.release
- run: cd v8/out.gn/ && ls -la
build_windows_x86_64:
name: windows-x64
runs-on: windows-latest
steps:
- name: Install Depot Tools
uses: newkdev/[email protected]
- uses: actions/setup-python@v5
with:
python-version: '3.11.7'
- run: |
echo 'solutions = [
{
"name": "v8",
"url": "https://github.com/openwebf/v8.git",
"deps_file": "DEPS",
"managed": False,
"custom_deps": {}
},
]
' > .gclient
- run: cat .gclient
- run: gclient sync && cd v8
- name: Generate build dir
run: python3 v8/tools/dev/v8gen.py arm64.release -vv
- run: |
@"is_component_build = true
is_debug = false
target_cpu = "arm64"
target_os = "android"
v8_target_cpu = "arm64"
use_goma = false
v8_enable_backtrace = true
v8_enable_i18n_support = false
v8_use_zlib = false
use_custom_libcxx = false
v8_enable_i18n_support = false
symbol_level = 0
v8_enable_webassembly = false
v8_enable_disassembler = false
v8_enable_object_print = false
v8_enable_verify_heap = false
dcheck_always_on = false
v8_enable_pointer_compression = false
v8_use_external_startup_data = true"@ | Out-File -FilePath v8/out.gn/arm64.release/args.gn
- name: Setup Ninja
uses: ashutoshvarma/setup-ninja@master
with:
version: 1.10.0
- name: Build
run: ninja -C ./v8/out.gn/arm64.release
- run: cd v8/out.gn/ && ls -la