File tree 2 files changed +16
-5
lines changed
2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 39
39
description : ' OpenSSL branch to test'
40
40
required : false
41
41
default : ' fix-tests'
42
+ upload_artifacts :
43
+ description : ' Upload artifacts'
44
+ required : false
45
+ default : false
42
46
workflow_call :
43
47
inputs :
44
48
binutils_branch :
53
57
type : string
54
58
cocom_branch :
55
59
type : string
60
+ upload_artifacts :
61
+ type : boolean
56
62
outputs :
57
63
toolchain-package-name :
58
64
value : ${{ jobs.build-toolchain.outputs.toolchain-package-name }}
@@ -359,25 +365,25 @@ jobs:
359
365
key : ccache-${{ steps.cache-keys.outputs.ccache-key }}
360
366
361
367
- name : Pack toolchain
362
- if : ${{ steps.cache-toolchain.outputs.cache-hit != 'true' && env.PACK_TOOLCHAIN == 'true' }}
368
+ if : ${{ steps.cache-toolchain.outputs.cache-hit != 'true' && upload_artifacts && env.PACK_TOOLCHAIN == 'true' }}
363
369
run : |
364
370
.github/scripts/toolchain/pack.sh
365
371
366
372
- name : Pack runtime
367
- if : ${{ steps.cache-toolchain.outputs.cache-hit != 'true' && env.PACK_TOOLCHAIN == 'true' }}
373
+ if : ${{ steps.cache-toolchain.outputs.cache-hit != 'true' && upload_artifacts && env.PACK_TOOLCHAIN == 'true' }}
368
374
run : |
369
375
.github/scripts/toolchain/pack-runtime.sh
370
376
371
377
- name : Upload build folder
372
- if : ${{ steps.cache-toolchain.outputs.cache-hit != 'true' && failure() }}
378
+ if : ${{ steps.cache-toolchain.outputs.cache-hit != 'true' && upload_artifacts && failure() }}
373
379
uses : actions/upload-artifact@v4
374
380
with :
375
381
name : ${{ env.BUILD_ARTIFACT_NAME }}
376
382
retention-days : 1
377
383
path : ${{ env.BUILD_PATH }}
378
384
379
385
- name : Upload toolchain artifact
380
- if : ${{ steps.cache-toolchain.outputs.cache-hit != 'true' && env.PACK_TOOLCHAIN == 'true' }}
386
+ if : ${{ steps.cache-toolchain.outputs.cache-hit != 'true' && upload_artifacts && env.PACK_TOOLCHAIN == 'true' }}
381
387
uses : actions/upload-artifact@v4
382
388
with :
383
389
name : ${{ env.TOOLCHAIN_ARTIFACT_NAME }}
Original file line number Diff line number Diff line change 19
19
description : ' Mingw branch to build'
20
20
required : false
21
21
default : ' woarm64'
22
+ upload_artifacts :
23
+ description : ' Upload artifacts'
24
+ required : false
25
+ default : false
22
26
env :
23
27
BINUTILS_BRANCH : ${{ inputs.binutils_branch || 'woarm64' }}
24
28
GCC_BRANCH : ${{ inputs.gcc_branch || 'woarm64' }}
@@ -67,14 +71,15 @@ jobs:
67
71
key : main-gcc-ccache-${{ steps.get-cache-key.outputs.timestamp }}
68
72
69
73
- name : Upload build folder
70
- if : failure()
74
+ if : ${{ failure() && upload_artifacts }}
71
75
uses : actions/upload-artifact@v4
72
76
with :
73
77
name : main-aarch64-w64-mingw32-build
74
78
retention-days : 1
75
79
path : ${{ env.BUILD_PATH }}
76
80
77
81
- name : Upload artifact
82
+ if : ${{ upload_artifacts }}
78
83
uses : actions/upload-artifact@v4
79
84
with :
80
85
name : main-aarch64-w64-mingw32-toolchain
You can’t perform that action at this time.
0 commit comments