File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 3939 description : ' OpenSSL branch to test'
4040 required : false
4141 default : ' fix-tests'
42+ upload_artifacts :
43+ description : ' Upload artifacts'
44+ required : false
45+ default : false
4246 workflow_call :
4347 inputs :
4448 binutils_branch :
5357 type : string
5458 cocom_branch :
5559 type : string
60+ upload_artifacts :
61+ type : boolean
5662 outputs :
5763 toolchain-package-name :
5864 value : ${{ jobs.build-toolchain.outputs.toolchain-package-name }}
@@ -359,25 +365,25 @@ jobs:
359365 key : ccache-${{ steps.cache-keys.outputs.ccache-key }}
360366
361367 - 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' }}
363369 run : |
364370 .github/scripts/toolchain/pack.sh
365371
366372 - 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' }}
368374 run : |
369375 .github/scripts/toolchain/pack-runtime.sh
370376
371377 - 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() }}
373379 uses : actions/upload-artifact@v4
374380 with :
375381 name : ${{ env.BUILD_ARTIFACT_NAME }}
376382 retention-days : 1
377383 path : ${{ env.BUILD_PATH }}
378384
379385 - 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' }}
381387 uses : actions/upload-artifact@v4
382388 with :
383389 name : ${{ env.TOOLCHAIN_ARTIFACT_NAME }}
Original file line number Diff line number Diff line change 1919 description : ' Mingw branch to build'
2020 required : false
2121 default : ' woarm64'
22+ upload_artifacts :
23+ description : ' Upload artifacts'
24+ required : false
25+ default : false
2226env :
2327 BINUTILS_BRANCH : ${{ inputs.binutils_branch || 'woarm64' }}
2428 GCC_BRANCH : ${{ inputs.gcc_branch || 'woarm64' }}
@@ -67,14 +71,15 @@ jobs:
6771 key : main-gcc-ccache-${{ steps.get-cache-key.outputs.timestamp }}
6872
6973 - name : Upload build folder
70- if : failure()
74+ if : ${{ failure() && upload_artifacts }}
7175 uses : actions/upload-artifact@v4
7276 with :
7377 name : main-aarch64-w64-mingw32-build
7478 retention-days : 1
7579 path : ${{ env.BUILD_PATH }}
7680
7781 - name : Upload artifact
82+ if : ${{ upload_artifacts }}
7883 uses : actions/upload-artifact@v4
7984 with :
8085 name : main-aarch64-w64-mingw32-toolchain
You can’t perform that action at this time.
0 commit comments