[llvm] Update download and upload artifacts action usage to v4 ahead of deprecation (PR #123747)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 05:20:02 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-github-workflow
Author: Philipp-Jan Honysz (philippjh)
<details>
<summary>Changes</summary>
Ahead of GitHub's [deprecation](https://github.blog/changelog/#artifacts-v3-brownouts) of v3 versions of both the `upload-artifact` and `download-artifact` action, I suggest this PR, which bumps the used version of both actions in all workflows to the newest v4 revision. Additionally, the versions are hashpinned as suggested in f3524e9aebbfabed0c60d0087b39ce14d8f778da.
---
Full diff: https://github.com/llvm/llvm-project/pull/123747.diff
3 Files Affected:
- (modified) .github/workflows/libclang-abi-tests.yml (+4-4)
- (modified) .github/workflows/llvm-tests.yml (+6-6)
- (modified) .github/workflows/release-documentation.yml (+1-1)
``````````diff
diff --git a/.github/workflows/libclang-abi-tests.yml b/.github/workflows/libclang-abi-tests.yml
index 9e839ff49e2835..41b3075288d2da 100644
--- a/.github/workflows/libclang-abi-tests.yml
+++ b/.github/workflows/libclang-abi-tests.yml
@@ -130,7 +130,7 @@ jobs:
sed -i 's/LLVM_[0-9]\+/LLVM_NOVERSION/' $lib-${{ matrix.ref }}.abi
done
- name: Upload ABI file
- uses: actions/upload-artifact at v3
+ uses: actions/upload-artifact at 65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # 4.6.0
with:
name: ${{ matrix.name }}
path: '*${{ matrix.ref }}.abi'
@@ -143,12 +143,12 @@ jobs:
- abi-dump
steps:
- name: Download baseline
- uses: actions/download-artifact at v3
+ uses: actions/download-artifact at fa0a91b85d4f404e444e00e005971372dc801d16 # 4.1.8
with:
name: build-baseline
path: build-baseline
- name: Download latest
- uses: actions/download-artifact at v3
+ uses: actions/download-artifact at fa0a91b85d4f404e444e00e005971372dc801d16 # 4.1.8
with:
name: build-latest
path: build-latest
@@ -162,7 +162,7 @@ jobs:
done
- name: Upload ABI Comparison
if: always()
- uses: actions/upload-artifact at v3
+ uses: actions/upload-artifact at 65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # 4.6.0
with:
name: compat-report-${{ github.sha }}
path: compat_reports/
diff --git a/.github/workflows/llvm-tests.yml b/.github/workflows/llvm-tests.yml
index 26e644229aaa26..4e570a7cb14550 100644
--- a/.github/workflows/llvm-tests.yml
+++ b/.github/workflows/llvm-tests.yml
@@ -137,14 +137,14 @@ jobs:
# Remove symbol versioning from dumps, so we can compare across major versions.
sed -i 's/LLVM_${{ matrix.llvm_version_major }}/LLVM_NOVERSION/' ${{ matrix.ref }}.abi
- name: Upload ABI file
- uses: actions/upload-artifact at v3
+ uses: actions/upload-artifact at 65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # 4.6.0
with:
name: ${{ matrix.name }}
path: ${{ matrix.ref }}.abi
- name: Upload symbol list file
if: matrix.name == 'build-baseline'
- uses: actions/upload-artifact at v3
+ uses: actions/upload-artifact at 65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # 4.6.0
with:
name: symbol-list
path: llvm.symbols
@@ -157,17 +157,17 @@ jobs:
- abi-dump
steps:
- name: Download baseline
- uses: actions/download-artifact at v3
+ uses: actions/download-artifact at fa0a91b85d4f404e444e00e005971372dc801d16 # 4.1.8
with:
name: build-baseline
path: build-baseline
- name: Download latest
- uses: actions/download-artifact at v3
+ uses: actions/download-artifact at fa0a91b85d4f404e444e00e005971372dc801d16 # 4.1.8
with:
name: build-latest
path: build-latest
- name: Download symbol list
- uses: actions/download-artifact at v3
+ uses: actions/download-artifact at fa0a91b85d4f404e444e00e005971372dc801d16 # 4.1.8
with:
name: symbol-list
path: symbol-list
@@ -186,7 +186,7 @@ jobs:
abi-compliance-checker $EXTRA_ARGS -l libLLVM.so -old build-baseline/*.abi -new build-latest/*.abi || test "${{ needs.abi-dump-setup.outputs.ABI_HEADERS }}" = "llvm-c"
- name: Upload ABI Comparison
if: always()
- uses: actions/upload-artifact at v3
+ uses: actions/upload-artifact at 65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # 4.6.0
with:
name: compat-report-${{ github.sha }}
path: compat_reports/
diff --git a/.github/workflows/release-documentation.yml b/.github/workflows/release-documentation.yml
index 922c5093f13579..09e21585bfc565 100644
--- a/.github/workflows/release-documentation.yml
+++ b/.github/workflows/release-documentation.yml
@@ -59,7 +59,7 @@ jobs:
./llvm/utils/release/build-docs.sh -release "${{ inputs.release-version }}" -no-doxygen
- name: Create Release Notes Artifact
- uses: actions/upload-artifact at v3
+ uses: actions/upload-artifact at 65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # 4.6.0
with:
name: release-notes
path: docs-build/html-export/
``````````
</details>
https://github.com/llvm/llvm-project/pull/123747
More information about the llvm-commits
mailing list