@@ -194,40 +194,30 @@ jobs:
194
194
runs-on : ${{ needs.prepare.outputs.build-runs-on }}
195
195
steps :
196
196
197
- - name : Checkout Actions
198
- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
199
- with :
200
- ref : ${{ (github.event_name == 'pull_request' && github.sha) || 'main' }}
201
- sparse-checkout : |
202
- .github/workflows/
203
- sparse-checkout-cone-mode : false
204
- # Check out outside of working directory so the source checkout doesn't
205
- # remove it.
206
- path : workflows
207
-
208
- # actions/checkout does not support paths outside of the GITHUB_WORKSPACE.
209
- # Also, anything that we put inside of GITHUB_WORKSPACE will be overwritten
210
- # by future actions/checkout steps. Therefore, in order to checkout the
211
- # latest actions from main, we need to first checkout out the actions inside of
212
- # GITHUB_WORKSPACE (see previous step), then use actions/checkout to checkout
213
- # the code being built and the move the actions from main back into GITHUB_WORKSPACE,
214
- # becasue the uses on composite actions only reads workflows from inside GITHUB_WORKSPACE.
215
- - shell : bash
216
- run : mv workflows ../workflows-main
217
-
218
197
- name : Checkout LLVM
219
198
uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
220
199
with :
221
200
ref : ${{ needs.prepare.outputs.ref }}
222
201
223
- - name : Copy main workflows
224
- shell : bash
225
- run : |
226
- mv ../workflows-main .
202
+ - name : Install Ninja
203
+ uses : llvm/actions/install-ninja@a1ea791b03c8e61f53a0e66f2f73db283aa0f01e # main
204
+
205
+ - name : Setup Windows
206
+ if : startsWith(runner.os, 'Windows')
207
+ uses : llvm/actions/setup-windows@main
208
+ with :
209
+ arch : amd64
227
210
228
- - name : Setup Stage
211
+ - name : Set Build Prefix
229
212
id : setup-stage
230
- uses : ./workflows-main/.github/workflows/release-binaries-setup-stage
213
+ shell : bash
214
+ run : |
215
+ build_prefix=`pwd`
216
+ if [ "${{ runner.os }}" = "Linux" ]; then
217
+ sudo chown $USER:$USER /mnt/
218
+ build_prefix=/mnt/
219
+ fi
220
+ echo "build-prefix=$build_prefix" >> $GITHUB_OUTPUT
231
221
232
222
- name : Configure
233
223
id : build
@@ -258,17 +248,11 @@ jobs:
258
248
path : |
259
249
${{ needs.prepare.outputs.release-binary-filename }}
260
250
261
- # Clean up some build files to reduce size of artifact.
262
- - name : Clean Up Build Directory
263
- shell : bash
251
+ - name : Run Tests
252
+ # These almost always fail so don't let them fail the build and prevent the uploads.
253
+ continue-on-error : true
264
254
run : |
265
- find ${{ steps.setup-stage.outputs.build-prefix }}/build -iname ${{ needs.prepare.outputs.release-binary-filename }} -delete
266
- find ${{ steps.setup-stage.outputs.build-prefix }}/build -iname _CPack_Packages -prune -exec rm -r {} +
267
-
268
- - name : Save Stage
269
- uses : ./workflows-main/.github/workflows/release-binaries-save-stage
270
- with :
271
- build-prefix : ${{ steps.setup-stage.outputs.build-prefix }}
255
+ ninja -C ${{ steps.setup-stage.outputs.build-prefix }}/build stage2-check-all
272
256
273
257
upload-release-binaries :
274
258
name : " Upload Release Binaries"
@@ -327,31 +311,3 @@ jobs:
327
311
--release ${{ needs.prepare.outputs.release-version }} \
328
312
upload \
329
313
--files ${{ needs.prepare.outputs.release-binary-filename }}*
330
-
331
- test-release :
332
- name : " Test Release"
333
- needs :
334
- - prepare
335
- - build-release-package
336
- if : >-
337
- github.repository_owner == 'llvm'
338
- runs-on : ${{ needs.prepare.outputs.test-runs-on }}
339
- steps :
340
- - name : Checkout Actions
341
- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
342
- with :
343
- ref : ${{ (github.event_name == 'pull_request' && github.sha) || 'main' }}
344
- sparse-checkout : |
345
- .github/workflows/
346
- sparse-checkout-cone-mode : false
347
- path : workflows
348
- - name : Setup Stage
349
- id : setup-stage
350
- uses : ./workflows/.github/workflows/release-binaries-setup-stage
351
- with :
352
- previous-artifact : build-release-package
353
-
354
- - name : Run Tests
355
- shell : bash
356
- run : |
357
- ninja -C ${{ steps.setup-stage.outputs.build-prefix }}/build stage2-check-all
0 commit comments