File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change 44 workflow_call :
55 inputs :
66 artifact-name :
7- description : " Named identifier for the artifact"
8- required : true
7+ description : " Named identifier for the artifact, optional"
98 type : string
109 os :
1110 description : " OS list"
@@ -166,9 +165,16 @@ jobs:
166165 *)
167166 MODE="elf";;
168167 esac
169- echo "TOOLCHAIN_NAME=riscv$BITS-$MODE-${{ matrix.os }}-${{ matrix.compiler }}-${{ inputs.artifact-name }}" >> $GITHUB_OUTPUT
168+ ARTIFACT_NAME=${{ inputs.artifact-name }}
169+ if [ -n "$ARTIFACT_NAME" ]; then
170+ ARTIFACT_NAME="-${ARTIFACT_NAME}"
171+ fi
172+ echo "TOOLCHAIN_NAME=riscv$BITS-$MODE-${{ matrix.os }}-${{ matrix.compiler }}${ARTIFACT_NAME}" >> $GITHUB_OUTPUT
170173
174+ - name : Move output to representative name
175+ run : |
176+ mv riscv.tar.xz ${{ steps.toolchain-name-generator.outputs.TOOLCHAIN_NAME }}.tar.xz
171177 - uses : actions/upload-artifact@v4
172178 with :
173179 name : ${{ steps.toolchain-name-generator.outputs.TOOLCHAIN_NAME }}
174- path : riscv .tar.xz
180+ path : ${{ steps.toolchain-name-generator.outputs.TOOLCHAIN_NAME }} .tar.xz
Original file line number Diff line number Diff line change 5555 needs : [activity-check]
5656 if : needs.activity-check.outputs.stale != 'true'
5757 uses : ./.github/workflows/build-reusable.yaml
58- with :
59- artifact-name : nightly
6058
6159 create-release :
6260 needs : [build]
6563 upload_url : ${{ steps.create_release.outputs.upload_url }}
6664 datestamp : ${{ env.DATESTAMP }}
6765 env :
68- ARTIFACTS_DIR : /mnt/ artifacts/
66+ ARTIFACTS_DIR : artifacts
6967 steps :
7068 - name : Run Configuration Commands
7169 id : metadata
8179 uses : actions/download-artifact@v4
8280 with :
8381 path : ${{ env.ARTIFACTS_DIR }}
82+ merge-multiple : true
8483 - name : List downloaded artifacts
8584 run : |
8685 echo "Contents of ${{ env.ARTIFACTS_DIR }}"
You can’t perform that action at this time.
0 commit comments