blob: 1b0e09cf73e77afdeb9a489a3fdf9bbffa733f45 [file] [log] [blame]
Petr Hosek1d453352018-10-11 18:09:05 -07001[
2 {
3 "cmd": [],
4 "name": "git"
5 },
6 {
7 "cmd": [
8 "git",
9 "init",
10 "[START_DIR]/gn"
11 ],
12 "infra_step": true,
13 "name": "git.init",
14 "~followup_annotations": [
15 "@@@STEP_NEST_LEVEL@1@@@"
16 ]
17 },
18 {
19 "cmd": [
20 "git",
21 "fetch",
22 "--tags",
23 "https://gn.googlesource.com/gn",
24 "refs/heads/master"
25 ],
26 "cwd": "[START_DIR]/gn",
27 "infra_step": true,
28 "name": "git.fetch",
29 "~followup_annotations": [
30 "@@@STEP_NEST_LEVEL@1@@@"
31 ]
32 },
33 {
34 "cmd": [
35 "git",
36 "checkout",
37 "FETCH_HEAD"
38 ],
39 "cwd": "[START_DIR]/gn",
40 "infra_step": true,
41 "name": "git.checkout",
42 "~followup_annotations": [
43 "@@@STEP_NEST_LEVEL@1@@@"
44 ]
45 },
46 {
47 "cmd": [
48 "git",
49 "fetch",
50 "https://gn.googlesource.com/gn",
51 "refs/changes/00/1000/1"
52 ],
53 "cwd": "[START_DIR]/gn",
54 "infra_step": true,
55 "name": "git.fetch 1000/1",
56 "~followup_annotations": [
57 "@@@STEP_NEST_LEVEL@1@@@"
58 ]
59 },
60 {
61 "cmd": [
62 "git",
63 "cherry-pick",
64 "FETCH_HEAD"
65 ],
66 "cwd": "[START_DIR]/gn",
67 "infra_step": true,
68 "name": "git.cherry-pick 1000/1",
69 "~followup_annotations": [
70 "@@@STEP_NEST_LEVEL@1@@@"
71 ]
72 },
73 {
74 "cmd": [
75 "cipd",
76 "ensure",
77 "-root",
78 "[START_DIR]/cipd",
79 "-ensure-file",
80 "infra/ninja/${platform} version:1.8.2",
81 "-json-output",
82 "/path/to/tmp/json"
83 ],
84 "infra_step": true,
85 "name": "ensure_installed",
86 "~followup_annotations": [
87 "@@@STEP_LOG_LINE@json.output@{@@@",
88 "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
89 "@@@STEP_LOG_LINE@json.output@ \"\": [@@@",
90 "@@@STEP_LOG_LINE@json.output@ {@@@",
91 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-version:1.8.2---\", @@@",
92 "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/ninja/${platform}\"@@@",
93 "@@@STEP_LOG_LINE@json.output@ }@@@",
94 "@@@STEP_LOG_LINE@json.output@ ]@@@",
95 "@@@STEP_LOG_LINE@json.output@ }@@@",
96 "@@@STEP_LOG_LINE@json.output@}@@@",
97 "@@@STEP_LOG_END@json.output@@@"
98 ]
99 },
100 {
101 "cmd": [],
102 "name": "debug"
103 },
104 {
105 "cmd": [],
106 "name": "debug.build",
107 "~followup_annotations": [
108 "@@@STEP_NEST_LEVEL@1@@@"
109 ]
110 },
111 {
112 "cmd": [
113 "cipd",
114 "ensure",
115 "-root",
116 "[CACHE]/macos_sdk",
117 "-ensure-file",
118 "infra/tools/mac_toolchain/${platform} git_revision:796d2b92cff93fc2059623ce0a66284373ceea0a",
119 "-json-output",
120 "/path/to/tmp/json"
121 ],
122 "cwd": "[START_DIR]/gn",
123 "infra_step": true,
124 "name": "debug.build.ensure_installed",
125 "~followup_annotations": [
126 "@@@STEP_NEST_LEVEL@2@@@",
127 "@@@STEP_LOG_LINE@json.output@{@@@",
128 "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
129 "@@@STEP_LOG_LINE@json.output@ \"\": [@@@",
130 "@@@STEP_LOG_LINE@json.output@ {@@@",
131 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-git_revision:796\", @@@",
132 "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/mac_toolchain/${platform}\"@@@",
133 "@@@STEP_LOG_LINE@json.output@ }@@@",
134 "@@@STEP_LOG_LINE@json.output@ ]@@@",
135 "@@@STEP_LOG_LINE@json.output@ }@@@",
136 "@@@STEP_LOG_LINE@json.output@}@@@",
137 "@@@STEP_LOG_END@json.output@@@"
138 ]
139 },
140 {
141 "cmd": [
142 "[CACHE]/macos_sdk/mac_toolchain",
143 "install",
144 "-kind",
145 "mac",
146 "-xcode-version",
147 "9c40b",
148 "-output-dir",
149 "[CACHE]/macos_sdk/XCode.app"
150 ],
151 "cwd": "[START_DIR]/gn",
152 "infra_step": true,
153 "name": "debug.build.install xcode",
154 "~followup_annotations": [
155 "@@@STEP_NEST_LEVEL@2@@@"
156 ]
157 },
158 {
159 "cmd": [
160 "sudo",
161 "xcode-select",
162 "--switch",
163 "[CACHE]/macos_sdk/XCode.app"
164 ],
165 "cwd": "[START_DIR]/gn",
166 "infra_step": true,
167 "name": "debug.build.select XCode",
168 "~followup_annotations": [
169 "@@@STEP_NEST_LEVEL@2@@@"
170 ]
171 },
172 {
173 "cmd": [
174 "python",
175 "-u",
176 "[START_DIR]/gn/build/gen.py",
177 "-d"
178 ],
179 "cwd": "[START_DIR]/gn",
180 "name": "debug.build.generate",
181 "~followup_annotations": [
182 "@@@STEP_NEST_LEVEL@2@@@"
183 ]
184 },
185 {
186 "cmd": [
187 "[START_DIR]/cipd/ninja",
188 "-C",
189 "[START_DIR]/gn/out"
190 ],
191 "cwd": "[START_DIR]/gn",
192 "name": "debug.build.ninja",
193 "~followup_annotations": [
194 "@@@STEP_NEST_LEVEL@2@@@"
195 ]
196 },
197 {
198 "cmd": [
199 "sudo",
200 "xcode-select",
201 "--reset"
202 ],
203 "cwd": "[START_DIR]/gn",
204 "infra_step": true,
205 "name": "debug.build.reset XCode",
206 "~followup_annotations": [
207 "@@@STEP_NEST_LEVEL@2@@@"
208 ]
209 },
210 {
211 "cmd": [
212 "[START_DIR]/gn/out/gn_unittests"
213 ],
214 "name": "debug.test",
215 "~followup_annotations": [
216 "@@@STEP_NEST_LEVEL@1@@@"
217 ]
218 },
219 {
220 "cmd": [],
221 "name": "release"
222 },
223 {
224 "cmd": [],
225 "name": "release.build",
226 "~followup_annotations": [
227 "@@@STEP_NEST_LEVEL@1@@@"
228 ]
229 },
230 {
231 "cmd": [
232 "cipd",
233 "ensure",
234 "-root",
235 "[CACHE]/macos_sdk",
236 "-ensure-file",
237 "infra/tools/mac_toolchain/${platform} git_revision:796d2b92cff93fc2059623ce0a66284373ceea0a",
238 "-json-output",
239 "/path/to/tmp/json"
240 ],
241 "cwd": "[START_DIR]/gn",
242 "infra_step": true,
243 "name": "release.build.ensure_installed",
244 "~followup_annotations": [
245 "@@@STEP_NEST_LEVEL@2@@@",
246 "@@@STEP_LOG_LINE@json.output@{@@@",
247 "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
248 "@@@STEP_LOG_LINE@json.output@ \"\": [@@@",
249 "@@@STEP_LOG_LINE@json.output@ {@@@",
250 "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-git_revision:796\", @@@",
251 "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/tools/mac_toolchain/${platform}\"@@@",
252 "@@@STEP_LOG_LINE@json.output@ }@@@",
253 "@@@STEP_LOG_LINE@json.output@ ]@@@",
254 "@@@STEP_LOG_LINE@json.output@ }@@@",
255 "@@@STEP_LOG_LINE@json.output@}@@@",
256 "@@@STEP_LOG_END@json.output@@@"
257 ]
258 },
259 {
260 "cmd": [
261 "[CACHE]/macos_sdk/mac_toolchain",
262 "install",
263 "-kind",
264 "mac",
265 "-xcode-version",
266 "9c40b",
267 "-output-dir",
268 "[CACHE]/macos_sdk/XCode.app"
269 ],
270 "cwd": "[START_DIR]/gn",
271 "infra_step": true,
272 "name": "release.build.install xcode",
273 "~followup_annotations": [
274 "@@@STEP_NEST_LEVEL@2@@@"
275 ]
276 },
277 {
278 "cmd": [
279 "sudo",
280 "xcode-select",
281 "--switch",
282 "[CACHE]/macos_sdk/XCode.app"
283 ],
284 "cwd": "[START_DIR]/gn",
285 "infra_step": true,
286 "name": "release.build.select XCode",
287 "~followup_annotations": [
288 "@@@STEP_NEST_LEVEL@2@@@"
289 ]
290 },
291 {
292 "cmd": [
293 "python",
294 "-u",
295 "[START_DIR]/gn/build/gen.py"
296 ],
297 "cwd": "[START_DIR]/gn",
298 "name": "release.build.generate",
299 "~followup_annotations": [
300 "@@@STEP_NEST_LEVEL@2@@@"
301 ]
302 },
303 {
304 "cmd": [
305 "[START_DIR]/cipd/ninja",
306 "-C",
307 "[START_DIR]/gn/out"
308 ],
309 "cwd": "[START_DIR]/gn",
310 "name": "release.build.ninja",
311 "~followup_annotations": [
312 "@@@STEP_NEST_LEVEL@2@@@"
313 ]
314 },
315 {
316 "cmd": [
317 "sudo",
318 "xcode-select",
319 "--reset"
320 ],
321 "cwd": "[START_DIR]/gn",
322 "infra_step": true,
323 "name": "release.build.reset XCode",
324 "~followup_annotations": [
325 "@@@STEP_NEST_LEVEL@2@@@"
326 ]
327 },
328 {
329 "cmd": [
330 "[START_DIR]/gn/out/gn_unittests"
331 ],
332 "name": "release.test",
333 "~followup_annotations": [
334 "@@@STEP_NEST_LEVEL@1@@@"
335 ]
336 },
337 {
338 "name": "$result",
339 "recipe_result": null,
340 "status_code": 0
341 }
342]