Skip to contentSkip to conversation

ci: update versions of actions in GHA

PATCH Applied David Marchand 2 participants 2 messages May 11 – Jun 1

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ci: update versions of actions in GHA

GitHub started deprecating GHA actions based on Node 20. For now, only warnings are raised, but we can switch to more recent versions of the common actions, now:
- cache v5
- checkout v6
- upload-artifact v7
- setup-python v6

---
 .github/workflows/build.yml | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)
.github/workflows/build.yml +14 -14
index b3e2957411..f0ef39d34f 100644
@@ -21,7 +21,7 @@ jobs:
     runs-on: ubuntu-24.04
     steps:
     - name: Checkout sources
-      uses: actions/checkout@v4
+      uses: actions/checkout@v6
       with:
         fetch-depth: 0
     - name: Check patches
@@ -121,7 +121,7 @@ jobs:
 
     steps:
     - name: Checkout sources
-      uses: actions/checkout@v4
+      uses: actions/checkout@v6
     - name: Generate cache keys
       id: get_ref_keys
       run: |
@@ -129,7 +129,7 @@ jobs:
         echo 'libabigail=libabigail-${{ env.LIBABIGAIL_VERSION }}-${{ matrix.config.os }}' >> $GITHUB_OUTPUT
         echo 'abi=abi-${{ matrix.config.os }}-${{ matrix.config.compiler }}-${{ matrix.config.cross }}-${{ env.REF_GIT_TAG }}' >> $GITHUB_OUTPUT
     - name: Retrieve ccache cache
-      uses: actions/cache@v4
+      uses: actions/cache@v5
       with:
         path: ~/.ccache
         key: ${{ steps.get_ref_keys.outputs.ccache }}-${{ github.ref }}
@@ -137,13 +137,13 @@ jobs:
           ${{ steps.get_ref_keys.outputs.ccache }}-refs/heads/main
     - name: Retrieve libabigail cache
       id: libabigail-cache
-      uses: actions/cache@v4
+      uses: actions/cache@v5
       if: env.ABI_CHECKS == 'true'
       with:
         path: libabigail
         key: ${{ steps.get_ref_keys.outputs.libabigail }}
     - name: Retrieve ABI reference cache
-      uses: actions/cache@v4
+      uses: actions/cache@v5
       if: env.ABI_CHECKS == 'true'
       with:
         path: reference
@@ -195,7 +195,7 @@ jobs:
         key: ${{ steps.get_ref_keys.outputs.ccache }}-${{ github.ref }}
     - name: Upload logs on failure
       if: failure()
-      uses: actions/upload-artifact@v4
+      uses: actions/upload-artifact@v7
       with:
         name: meson-logs-${{ join(matrix.config.*, '-') }}
         path: |
@@ -216,9 +216,9 @@ jobs:
 
     steps:
     - name: Checkout sources
-      uses: actions/checkout@v4
+      uses: actions/checkout@v6
     - name: Set up Python
-      uses: actions/setup-python@v5
+      uses: actions/setup-python@v6
       with:
         python-version: '3.x'
     - name: Install dependencies
@@ -235,7 +235,7 @@ jobs:
         meson compile -C build
     - name: Upload logs on failure
       if: failure()
-      uses: actions/upload-artifact@v4
+      uses: actions/upload-artifact@v7
       with:
         name: meson-logs-${{ join(matrix.config.*, '-') }}
         path: |
@@ -287,7 +287,7 @@ jobs:
         echo 'image=image-${{ matrix.config.image }}-'$(date -u +%Y-%m-%d) >> $GITHUB_OUTPUT
     - name: Retrieve image cache
       id: image_cache
-      uses: actions/cache@v4
+      uses: actions/cache@v5
       with:
         path: ~/.image
         key: ${{ steps.get_keys.outputs.image }}
@@ -331,7 +331,7 @@ jobs:
 
     steps:
     - name: Checkout sources
-      uses: actions/checkout@v4
+      uses: actions/checkout@v6
     - name: Generate various keys
       id: get_keys
       run: |
@@ -339,7 +339,7 @@ jobs:
         echo 'logs=meson-logs-${{ join(matrix.config.*, '-') }}' | tr -d ':' >> $GITHUB_OUTPUT
     - name: Retrieve image cache
       id: image_cache
-      uses: actions/cache@v4
+      uses: actions/cache@v5
       with:
         path: ~/.image
         key: ${{ needs.prepare-container-images.outputs.image }}
@@ -349,7 +349,7 @@ jobs:
         echo 'Image ${{ matrix.config.image }} is not cached.'
         false
     - name: Retrieve ccache cache
-      uses: actions/cache@v4
+      uses: actions/cache@v5
       with:
         path: ~/.ccache
         key: ${{ steps.get_keys.outputs.ccache }}-${{ github.ref }}
@@ -388,7 +388,7 @@ jobs:
       run: docker kill dpdk
     - name: Upload logs on failure
       if: failure()
-      uses: actions/upload-artifact@v4
+      uses: actions/upload-artifact@v7
       with:
         name: ${{ steps.get_keys.outputs.logs }}
         path: |
Signature · 1 line
2.53.0
#1 lore raw

11/05/2026 18:11, David Marchand:

Quoted 8 lines

GitHub started deprecating GHA actions based on Node 20. For now, only warnings are raised, but we can switch to more recent versions of the common actions, now:
- cache v5
- checkout v6
- upload-artifact v7
- setup-python v6

Quoted 5 lines

Applied, thanks.