-
Notifications
You must be signed in to change notification settings - Fork 7
392 lines (391 loc) · 13 KB
/
5.4-clang-14.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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
# DO NOT MODIFY MANUALLY!
# This file has been autogenerated by invoking:
# $ ./generate_workflow.py 5.4
name: 5.4 (clang-14)
'on':
push:
branches:
- presubmit/*
paths:
- check_logs.py
- utils.py
- tuxsuite/5.4-clang-14.tux.yml
- .github/workflows/5.4-clang-14.yml
schedule:
- cron: 0 0 * * 3
workflow_dispatch: null
permissions: read-all
jobs:
check_cache:
name: Check Cache
runs-on: ubuntu-latest
container: tuxmake/x86_64_clang-14
env:
GIT_REPO: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
GIT_REF: linux-5.4.y
outputs:
output: ${{ steps.step2.outputs.output }}
status: ${{ steps.step2.outputs.status }}
steps:
- uses: actions/checkout@v4
- name: pip install requests
run: apt-get install -y python3-pip && pip install requests
- name: python check_cache.py
id: step1
continue-on-error: true
run: python check_cache.py -w '${{github.workflow}}' -g ${{secrets.REPO_SCOPED_PAT}} -r ${{env.GIT_REF}} -o ${{env.GIT_REPO}}
- name: Save exit code to GITHUB_OUTPUT
id: step2
run: echo "output=${{steps.step1.outcome}}" >> "$GITHUB_OUTPUT" && echo "status=$CACHE_PASS" >> "$GITHUB_OUTPUT"
kick_tuxsuite_defconfigs:
name: TuxSuite (defconfigs)
runs-on: ubuntu-latest
container: tuxsuite/tuxsuite
needs: check_cache
env:
TUXSUITE_TOKEN: ${{ secrets.TUXSUITE_TOKEN }}
REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }}
timeout-minutes: 480
steps:
- name: Checking Cache Pass
if: ${{ needs.check_cache.outputs.output == 'success' && github.event_name != 'workflow_dispatch' && needs.check_cache.outputs.status == 'pass'}}
run: echo 'Cache HIT on previously PASSED build. Passing this build to avoid redundant work.' && exit 0
- name: Checking Cache Fail
if: ${{ needs.check_cache.outputs.output == 'success' && github.event_name != 'workflow_dispatch' && needs.check_cache.outputs.status == 'fail'}}
run: echo 'Cache HIT on previously FAILED build. Failing this build to avoid redundant work.' && exit 1
- uses: actions/checkout@v4
- name: tuxsuite
if: ${{needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch'}}
run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name defconfigs --json-out builds.json tuxsuite/5.4-clang-14.tux.yml || true
- name: Update Cache Build Status
run: python update_cache.py
- name: save builds.json
uses: actions/upload-artifact@v3
with:
path: builds.json
name: output_artifact_defconfigs
if-no-files-found: error
- name: generate boot-utils.json
run: python3 scripts/generate-boot-utils-json.py ${{ secrets.GITHUB_TOKEN }}
- name: save boot-utils.json
uses: actions/upload-artifact@v3
with:
path: boot-utils.json
name: boot_utils_json_defconfigs
if-no-files-found: error
_64bbdb8f3d4a3e83679a0d4ce327cee5:
runs-on: ubuntu-latest
needs:
- kick_tuxsuite_defconfigs
- check_cache
name: ARCH=arm LLVM=1 LLVM_IAS=0 LLVM_VERSION=14 multi_v7_defconfig
if: ${{needs.check_cache.outputs.status != 'pass'}}
env:
ARCH: arm
LLVM_VERSION: 14
BOOT: 1
CONFIG: multi_v7_defconfig
REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }}
container:
image: ghcr.io/clangbuiltlinux/qemu
options: --ipc=host
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/download-artifact@v3
with:
name: output_artifact_defconfigs
- uses: actions/download-artifact@v3
with:
name: boot_utils_json_defconfigs
- name: Check Build and Boot Logs
run: ./check_logs.py
_e8ff4074fdd3e432d55a111ea5500c7c:
runs-on: ubuntu-latest
needs:
- kick_tuxsuite_defconfigs
- check_cache
name: ARCH=arm LLVM=1 LLVM_IAS=0 LLVM_VERSION=14 multi_v7_defconfig+CONFIG_THUMB2_KERNEL=y
if: ${{needs.check_cache.outputs.status != 'pass'}}
env:
ARCH: arm
LLVM_VERSION: 14
BOOT: 1
CONFIG: multi_v7_defconfig+CONFIG_THUMB2_KERNEL=y
REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }}
container:
image: ghcr.io/clangbuiltlinux/qemu
options: --ipc=host
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/download-artifact@v3
with:
name: output_artifact_defconfigs
- uses: actions/download-artifact@v3
with:
name: boot_utils_json_defconfigs
- name: Check Build and Boot Logs
run: ./check_logs.py
_b47eaab7c36202f985db8ea18a308034:
runs-on: ubuntu-latest
needs:
- kick_tuxsuite_defconfigs
- check_cache
name: ARCH=arm64 LLVM=1 LLVM_IAS=1 LLVM_VERSION=14 defconfig+CONFIG_COMPAT_VDSO=n
if: ${{needs.check_cache.outputs.status != 'pass'}}
env:
ARCH: arm64
LLVM_VERSION: 14
BOOT: 1
CONFIG: defconfig+CONFIG_COMPAT_VDSO=n
REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }}
container:
image: ghcr.io/clangbuiltlinux/qemu
options: --ipc=host
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/download-artifact@v3
with:
name: output_artifact_defconfigs
- uses: actions/download-artifact@v3
with:
name: boot_utils_json_defconfigs
- name: Check Build and Boot Logs
run: ./check_logs.py
_3ee45057c88242c3397698de92e3b147:
runs-on: ubuntu-latest
needs:
- kick_tuxsuite_defconfigs
- check_cache
name: ARCH=mips LLVM=1 LLVM_IAS=0 LLVM_VERSION=14 malta_defconfig+CONFIG_BLK_DEV_INITRD=y+CONFIG_CPU_BIG_ENDIAN=y
if: ${{needs.check_cache.outputs.status != 'pass'}}
env:
ARCH: mips
LLVM_VERSION: 14
BOOT: 1
CONFIG: malta_defconfig+CONFIG_BLK_DEV_INITRD=y+CONFIG_CPU_BIG_ENDIAN=y
REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }}
container:
image: ghcr.io/clangbuiltlinux/qemu
options: --ipc=host
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/download-artifact@v3
with:
name: output_artifact_defconfigs
- uses: actions/download-artifact@v3
with:
name: boot_utils_json_defconfigs
- name: Check Build and Boot Logs
run: ./check_logs.py
_9f3600a5a6cccf8fd53cc25c49ecea5b:
runs-on: ubuntu-latest
needs:
- kick_tuxsuite_defconfigs
- check_cache
name: ARCH=mips LLVM=1 LLVM_IAS=0 LLVM_VERSION=14 malta_defconfig+CONFIG_BLK_DEV_INITRD=y
if: ${{needs.check_cache.outputs.status != 'pass'}}
env:
ARCH: mips
LLVM_VERSION: 14
BOOT: 1
CONFIG: malta_defconfig+CONFIG_BLK_DEV_INITRD=y
REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }}
container:
image: ghcr.io/clangbuiltlinux/qemu
options: --ipc=host
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/download-artifact@v3
with:
name: output_artifact_defconfigs
- uses: actions/download-artifact@v3
with:
name: boot_utils_json_defconfigs
- name: Check Build and Boot Logs
run: ./check_logs.py
_21120d396d88027038271a19c433b2ea:
runs-on: ubuntu-latest
needs:
- kick_tuxsuite_defconfigs
- check_cache
name: ARCH=powerpc LLVM=1 LLVM_IAS=0 LLVM_VERSION=14 ppc44x_defconfig
if: ${{needs.check_cache.outputs.status != 'pass'}}
env:
ARCH: powerpc
LLVM_VERSION: 14
BOOT: 1
CONFIG: ppc44x_defconfig
REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }}
container:
image: ghcr.io/clangbuiltlinux/qemu
options: --ipc=host
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/download-artifact@v3
with:
name: output_artifact_defconfigs
- uses: actions/download-artifact@v3
with:
name: boot_utils_json_defconfigs
- name: Check Build and Boot Logs
run: ./check_logs.py
_2fe146ce78067661706ce3c941ab2c04:
runs-on: ubuntu-latest
needs:
- kick_tuxsuite_defconfigs
- check_cache
name: ARCH=powerpc LLVM=1 LD=powerpc64le-linux-gnu-ld LLVM_IAS=0 LLVM_VERSION=14 ppc64_guest_defconfig
if: ${{needs.check_cache.outputs.status != 'pass'}}
env:
ARCH: powerpc
LLVM_VERSION: 14
BOOT: 1
CONFIG: ppc64_guest_defconfig
REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }}
container:
image: ghcr.io/clangbuiltlinux/qemu
options: --ipc=host
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/download-artifact@v3
with:
name: output_artifact_defconfigs
- uses: actions/download-artifact@v3
with:
name: boot_utils_json_defconfigs
- name: Check Build and Boot Logs
run: ./check_logs.py
_58f0a88b2eb14c651a657df2ed1232ce:
runs-on: ubuntu-latest
needs:
- kick_tuxsuite_defconfigs
- check_cache
name: ARCH=powerpc LLVM=1 LLVM_IAS=0 LLVM_VERSION=14 powernv_defconfig
if: ${{needs.check_cache.outputs.status != 'pass'}}
env:
ARCH: powerpc
LLVM_VERSION: 14
BOOT: 1
CONFIG: powernv_defconfig
REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }}
container:
image: ghcr.io/clangbuiltlinux/qemu
options: --ipc=host
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/download-artifact@v3
with:
name: output_artifact_defconfigs
- uses: actions/download-artifact@v3
with:
name: boot_utils_json_defconfigs
- name: Check Build and Boot Logs
run: ./check_logs.py
_f83a8a60320f3abf313f8a5759c5391c:
runs-on: ubuntu-latest
needs:
- kick_tuxsuite_defconfigs
- check_cache
name: ARCH=x86_64 LLVM=1 LLVM_IAS=1 LLVM_VERSION=14 defconfig
if: ${{needs.check_cache.outputs.status != 'pass'}}
env:
ARCH: x86_64
LLVM_VERSION: 14
BOOT: 1
CONFIG: defconfig
REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }}
container:
image: ghcr.io/clangbuiltlinux/qemu
options: --ipc=host
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/download-artifact@v3
with:
name: output_artifact_defconfigs
- uses: actions/download-artifact@v3
with:
name: boot_utils_json_defconfigs
- name: Check Build and Boot Logs
run: ./check_logs.py
kick_tuxsuite_allconfigs:
name: TuxSuite (allconfigs)
runs-on: ubuntu-latest
container: tuxsuite/tuxsuite
needs: check_cache
env:
TUXSUITE_TOKEN: ${{ secrets.TUXSUITE_TOKEN }}
REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }}
timeout-minutes: 480
steps:
- name: Checking Cache Pass
if: ${{ needs.check_cache.outputs.output == 'success' && github.event_name != 'workflow_dispatch' && needs.check_cache.outputs.status == 'pass'}}
run: echo 'Cache HIT on previously PASSED build. Passing this build to avoid redundant work.' && exit 0
- name: Checking Cache Fail
if: ${{ needs.check_cache.outputs.output == 'success' && github.event_name != 'workflow_dispatch' && needs.check_cache.outputs.status == 'fail'}}
run: echo 'Cache HIT on previously FAILED build. Failing this build to avoid redundant work.' && exit 1
- uses: actions/checkout@v4
- name: tuxsuite
if: ${{needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch'}}
run: tuxsuite plan --git-repo https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git --git-ref linux-5.4.y --job-name allconfigs --json-out builds.json tuxsuite/5.4-clang-14.tux.yml || true
- name: Update Cache Build Status
run: python update_cache.py
- name: save builds.json
uses: actions/upload-artifact@v3
with:
path: builds.json
name: output_artifact_allconfigs
if-no-files-found: error
- name: generate boot-utils.json
run: python3 scripts/generate-boot-utils-json.py ${{ secrets.GITHUB_TOKEN }}
- name: save boot-utils.json
uses: actions/upload-artifact@v3
with:
path: boot-utils.json
name: boot_utils_json_allconfigs
if-no-files-found: error
_fe2c9057aa7118b7ceddc2c7bbdc8e2d:
runs-on: ubuntu-latest
needs:
- kick_tuxsuite_allconfigs
- check_cache
name: ARCH=x86_64 BOOT=0 LLVM=1 LLVM_IAS=1 LLVM_VERSION=14 allmodconfig
if: ${{needs.check_cache.outputs.status != 'pass'}}
env:
ARCH: x86_64
LLVM_VERSION: 14
BOOT: 0
CONFIG: allmodconfig
REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }}
container:
image: ghcr.io/clangbuiltlinux/qemu
options: --ipc=host
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/download-artifact@v3
with:
name: output_artifact_allconfigs
- uses: actions/download-artifact@v3
with:
name: boot_utils_json_allconfigs
- name: Check Build and Boot Logs
run: ./check_logs.py