Skip to content

Commit c4e32b3

Browse files
committed
CI/CD: Bump upload-artifact to v4
We recently updated the download-artifact action to v4, because earlier versions were deprecated and stopped working. Now we ran into the situation, that the release pipeline broke, because no toolchains are found by the download-artifact action ("Found 0 artifact(s)" although all toolchain builds succeeded and the resulting toolchain was successfully archived and uploaded). Looking into the documention of download-artifact@v4 shows the issue: One of the breaking changes of download-artifact@v4 is "Downloading artifacts that were created from action/upload-artifact@v3 and below are not supported." ([1]). Our pipeline uses upload-artifact@v3, which is why they are not found later on. Let's bump the upload-artifact action to v4 so that download-artifact@v4 will find the built artifacts again. [1] https://github.com/actions/download-artifact?tab=readme-ov-file#v4---whats-new Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
1 parent 68a48d2 commit c4e32b3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
esac
8282
echo "TOOLCHAIN_NAME=riscv$BITS-$MODE-${{ matrix.os }}-${{ matrix.compiler }}-nightly" >> $GITHUB_OUTPUT
8383
84-
- uses: actions/upload-artifact@v3
84+
- uses: actions/upload-artifact@v4
8585
with:
8686
name: ${{ steps.toolchain-name-generator.outputs.TOOLCHAIN_NAME }}
8787
path: riscv.tar.gz
@@ -170,7 +170,7 @@ jobs:
170170
esac
171171
echo "TOOLCHAIN_NAME=riscv$BITS-$MODE-${{ matrix.os }}-multilib-nightly" >> $GITHUB_OUTPUT
172172
173-
- uses: actions/upload-artifact@v3
173+
- uses: actions/upload-artifact@v4
174174
with:
175175
name: ${{ steps.toolchain-name-generator.outputs.TOOLCHAIN_NAME }}
176176
path: riscv.tar.gz

.github/workflows/nightly-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
esac
115115
echo "TOOLCHAIN_NAME=riscv$BITS-$MODE-${{ matrix.os }}-${{ matrix.compiler }}-nightly" >> $GITHUB_OUTPUT
116116
117-
- uses: actions/upload-artifact@v3
117+
- uses: actions/upload-artifact@v4
118118
with:
119119
name: ${{ steps.toolchain-name-generator.outputs.TOOLCHAIN_NAME }}
120120
path: riscv.tar.gz

0 commit comments

Comments
 (0)