Skip to content

Commit 9dff4cb

Browse files
committed
Fixes
1 parent b81c9ad commit 9dff4cb

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/release-binaries.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ jobs:
110110
variant: sccache
111111

112112
- name: Build Stage 1 Clang
113+
shell: bash
113114
run: |
114115
sudo chown $USER:$USER /mnt/
115116
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:
118119
# We need to create an archive of the build directory, because it has too
119120
# many files to upload.
120121
- name: Package Build and Source Directories
122+
shell: bash
121123
run: |
122124
tar -c . | zstd -T0 -c > llvm-project.tar.zst
123125
tar -C /mnt/ -c build/ | zstd -T0 -c > build.tar.zst
@@ -161,6 +163,7 @@ jobs:
161163
merge-multiple: true
162164

163165
- name: Unpack Artifacts
166+
shell: bash
164167
run: |
165168
tar --zstd -xf llvm-project.tar.zst
166169
rm llvm-project.tar.zst
@@ -170,12 +173,14 @@ jobs:
170173
171174
- name: Build Stage 2
172175
if: false
176+
shell: bash
173177
run: |
174178
ninja -C /mnt/build stage2-instrumented
175179
176180
# We need to create an archive of the build directory, because it has too
177181
# many files to upload.
178182
- name: Save Build and Source Directories
183+
shell: bash
179184
run: |
180185
tar -c . | zstd -T0 -c > llvm-project.tar.zst
181186
tar -C /mnt/ -c build/ | zstd -T0 -c > build.tar.zst
@@ -202,7 +207,15 @@ jobs:
202207
- build-stage2-linux
203208
outputs:
204209
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
206219
steps:
207220
- name: Install Ninja
208221
uses: llvm/actions/install-ninja@22e9f909d35b50bd1181709564bfe816eaeaae81 # main
@@ -214,6 +227,7 @@ jobs:
214227
merge-multiple: true
215228

216229
- name: Unpack Artifact
230+
shell: bash
217231
run: |
218232
tar --zstd -xf llvm-project.tar.zst
219233
rm llvm-project.tar.zst
@@ -229,6 +243,7 @@ jobs:
229243

230244
- name: Build Release Package
231245
name: Build
246+
shell: bash
232247
run: |
233248
ninja -C /mnt/build stage2-package
234249
@@ -242,6 +257,7 @@ jobs:
242257
timeout-minutes: 330
243258

244259
- id: package-info
260+
shell: bash
245261
run: |
246262
filename="LLVM-${{ needs.prepare.outputs.release-version }}-Linux.tar.gz"
247263
echo "filename=$filename" >> $GITHUB_OUTPUT
@@ -255,12 +271,14 @@ jobs:
255271

256272
# Clean up some build files to reduce size of artifact.
257273
- name: Clean Up Build Directory
274+
shell: bash
258275
run: |
259276
find /mnt/build -iname ${{ steps.package-info.outputs.filename }} -delete
260277
261278
# We need to create an archive of the build directory, because it has too
262279
# many files to upload.
263280
- name: Save Build and Source Directories
281+
shell: bash
264282
run: |
265283
tar -c . | zstd -T0 -c > llvm-project.tar.zst
266284
tar -C /mnt/ -c build/ | zstd -T0 -c > build.tar.zst
@@ -296,6 +314,7 @@ jobs:
296314
pattern: *-release-binary
297315

298316
- name: Upload Release
317+
shell: bash
299318
run: |
300319
sudo apt install python3-github
301320
./llvm-project/llvm/utils/release/github-upload-release.py \
@@ -330,6 +349,7 @@ jobs:
330349
merge-multiple: true
331350

332351
- name: Unpack Artifact
352+
shell: bash
333353
run: |
334354
tar --zstd -xf llvm-project.tar.zst
335355
rm llvm-project.tar.zst
@@ -338,5 +358,6 @@ jobs:
338358
rm build.tar.zst
339359
340360
- name: Run Tests
361+
shell: bash
341362
run: |
342363
ninja -C /mnt/build stage2-check-all

0 commit comments

Comments
 (0)