@@ -110,6 +110,7 @@ jobs:
110
110
variant : sccache
111
111
112
112
- name : Build Stage 1 Clang
113
+ shell : bash
113
114
run : |
114
115
sudo chown $USER:$USER /mnt/
115
116
cmake -G Ninja -C clang/cmake/caches/Release.cmake -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -S llvm -B /mnt/build
@@ -118,6 +119,7 @@ jobs:
118
119
# We need to create an archive of the build directory, because it has too
119
120
# many files to upload.
120
121
- name : Package Build and Source Directories
122
+ shell : bash
121
123
run : |
122
124
tar -c . | zstd -T0 -c > llvm-project.tar.zst
123
125
tar -C /mnt/ -c build/ | zstd -T0 -c > build.tar.zst
@@ -161,6 +163,7 @@ jobs:
161
163
merge-multiple : true
162
164
163
165
- name : Unpack Artifacts
166
+ shell : bash
164
167
run : |
165
168
tar --zstd -xf llvm-project.tar.zst
166
169
rm llvm-project.tar.zst
@@ -170,12 +173,14 @@ jobs:
170
173
171
174
- name : Build Stage 2
172
175
if : false
176
+ shell : bash
173
177
run : |
174
178
ninja -C /mnt/build stage2-instrumented
175
179
176
180
# We need to create an archive of the build directory, because it has too
177
181
# many files to upload.
178
182
- name : Save Build and Source Directories
183
+ shell : bash
179
184
run : |
180
185
tar -c . | zstd -T0 -c > llvm-project.tar.zst
181
186
tar -C /mnt/ -c build/ | zstd -T0 -c > build.tar.zst
@@ -202,7 +207,15 @@ jobs:
202
207
- build-stage2-linux
203
208
outputs :
204
209
filename : ${{ steps.package-info.outputs.release-filename }}
205
- runs-on : ubuntu-22.04-16x64
210
+ runs-on : ${{ matrix.runs-on }}
211
+ strategy :
212
+ fail-fast : false
213
+ matrix :
214
+ runs-on :
215
+ - ubuntu-22.04
216
+ - windows-2022
217
+ - macos-13
218
+ - macos-14
206
219
steps :
207
220
- name : Install Ninja
208
221
uses : llvm/actions/install-ninja@22e9f909d35b50bd1181709564bfe816eaeaae81 # main
@@ -214,6 +227,7 @@ jobs:
214
227
merge-multiple : true
215
228
216
229
- name : Unpack Artifact
230
+ shell : bash
217
231
run : |
218
232
tar --zstd -xf llvm-project.tar.zst
219
233
rm llvm-project.tar.zst
@@ -229,6 +243,7 @@ jobs:
229
243
230
244
- name : Build Release Package
231
245
name : Build
246
+ shell : bash
232
247
run : |
233
248
ninja -C /mnt/build stage2-package
234
249
@@ -242,6 +257,7 @@ jobs:
242
257
timeout-minutes : 330
243
258
244
259
- id : package-info
260
+ shell : bash
245
261
run : |
246
262
filename="LLVM-${{ needs.prepare.outputs.release-version }}-Linux.tar.gz"
247
263
echo "filename=$filename" >> $GITHUB_OUTPUT
@@ -255,12 +271,14 @@ jobs:
255
271
256
272
# Clean up some build files to reduce size of artifact.
257
273
- name : Clean Up Build Directory
274
+ shell : bash
258
275
run : |
259
276
find /mnt/build -iname ${{ steps.package-info.outputs.filename }} -delete
260
277
261
278
# We need to create an archive of the build directory, because it has too
262
279
# many files to upload.
263
280
- name : Save Build and Source Directories
281
+ shell : bash
264
282
run : |
265
283
tar -c . | zstd -T0 -c > llvm-project.tar.zst
266
284
tar -C /mnt/ -c build/ | zstd -T0 -c > build.tar.zst
@@ -296,6 +314,7 @@ jobs:
296
314
pattern : *-release-binary
297
315
298
316
- name : Upload Release
317
+ shell : bash
299
318
run : |
300
319
sudo apt install python3-github
301
320
./llvm-project/llvm/utils/release/github-upload-release.py \
@@ -330,6 +349,7 @@ jobs:
330
349
merge-multiple : true
331
350
332
351
- name : Unpack Artifact
352
+ shell : bash
333
353
run : |
334
354
tar --zstd -xf llvm-project.tar.zst
335
355
rm llvm-project.tar.zst
@@ -338,5 +358,6 @@ jobs:
338
358
rm build.tar.zst
339
359
340
360
- name : Run Tests
361
+ shell : bash
341
362
run : |
342
363
ninja -C /mnt/build stage2-check-all
0 commit comments