From 8e0caed53028b5a48cfd4fbd61d3739036d7ddf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Wed, 31 Jan 2024 13:35:18 +0100 Subject: [PATCH] Bump github actions version --- .github/workflows/build.yml | 13 ++++++++----- .github/workflows/coverity.yml | 4 ++-- .github/workflows/regression.yml | 8 ++++---- .github/workflows/release.yml | 15 +++++++++------ 4 files changed, 23 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5d1436f8..4e10b172 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -16,7 +16,7 @@ jobs: variant: [netconf, classic] fail-fast: false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set Build Variables id: vars run: | @@ -28,7 +28,7 @@ jobs: echo "dir=infix-$target" >> $GITHUB_OUTPUT echo "tgz=infix-$target.tar.gz" >> $GITHUB_OUTPUT - name: Restore Cache of dl/ - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: dl/ key: dl-${{ matrix.platform }}-${{ matrix.variant }}-${{ hashFiles('.git/modules/buildroot/HEAD', 'configs/*', 'package/*/*.hash') }} @@ -37,7 +37,7 @@ jobs: dl-${{ matrix.platform }}- dl- - name: Restore Cache of .ccache/ - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: .ccache/ key: ccache-${{ matrix.platform }}-${{ matrix.variant }}-${{ hashFiles('.git/modules/buildroot/HEAD', 'package/*/*.hash') }} @@ -65,9 +65,10 @@ jobs: if: matrix.platform == 'x86_64' && matrix.variant == 'netconf' run: | make test-qeneth - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: path: output/${{ steps.vars.outputs.tgz }} + name: artifact-${{ matrix.variant }}-{{ matrix.platform }} release: if: ${{github.repository_owner == 'kernelkit' && github.ref_name == 'main'}} name: Upload Latest Build @@ -76,7 +77,9 @@ jobs: permissions: contents: write steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 + pattern: "artifact-*" + merge-multiple: true - uses: ncipollo/release-action@v1 with: allowUpdates: true diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 88265caf..9cdefbf7 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -23,7 +23,7 @@ jobs: --post-data "token=$TOKEN&project=${PROJECT_NAME}&md5=1" \ -O coverity-latest.tar.gz.md5 echo "md5=$(cat coverity-latest.tar.gz.md5)" | tee -a $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: cache with: path: coverity-latest.tar.gz @@ -77,7 +77,7 @@ jobs: --form description="${PROJECT_NAME} $(git rev-parse HEAD)" \ https://scan.coverity.com/builds?project=${PROJECT_NAME} - name: Upload build.log - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: coverity-build.log path: cov-int/build-log.txt diff --git a/.github/workflows/regression.yml b/.github/workflows/regression.yml index 67759a8b..41e1cf61 100644 --- a/.github/workflows/regression.yml +++ b/.github/workflows/regression.yml @@ -18,7 +18,7 @@ jobs: name: Regression Testing runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: 'true' - name: Set Build Variables @@ -28,7 +28,7 @@ jobs: echo "dir=infix-$target" >> $GITHUB_OUTPUT echo "tgz=infix-$target.tar.gz" >> $GITHUB_OUTPUT - name: Restore Cache of dl/ - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: dl/ key: dl-x86_64-netconf-${{ hashFiles('.git/modules/buildroot/refs/heads/master', 'package/*/*.hash') }} @@ -37,7 +37,7 @@ jobs: dl-x86_64- dl- - name: Restore Cache of .ccache/ - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: .ccache/ key: ccache-x86_64-netconf-${{ hashFiles('.git/modules/buildroot/refs/head/master', 'package/*/*.hash') }} @@ -62,7 +62,7 @@ jobs: ln -s ${{ steps.vars.outputs.dir }} images tar cfz ${{ steps.vars.outputs.tgz }} ${{ steps.vars.outputs.dir }} - name: Upload Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: output/${{ steps.vars.outputs.tgz }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f946242f..325ea953 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,7 +28,7 @@ jobs: variant: [netconf, classic] fail-fast: false steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set Release Variables id: build run: | @@ -52,7 +52,7 @@ jobs: echo "dir=infix-$target" >> $GITHUB_OUTPUT echo "tgz=infix-$target.tar.gz" >> $GITHUB_OUTPUT - name: Restore Cache of dl/ - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: dl/ key: dl-${{ matrix.platform }}-${{ matrix.variant }}-${{ hashFiles('.git/modules/buildroot/HEAD', 'configs/*', 'package/*/*.hash') }} @@ -61,7 +61,7 @@ jobs: dl-${{ matrix.platform }}- dl- - name: Restore Cache of .ccache/ - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: .ccache/ key: ccache-${{ matrix.platform }}-${{ matrix.variant }}-${{ hashFiles('.git/modules/buildroot/HEAD', 'package/*/*.hash') }} @@ -87,16 +87,19 @@ jobs: mv images ${{ steps.build.outputs.dir }} ln -s ${{ steps.build.outputs.dir }} images tar chfz ${{ steps.build.outputs.tgz }} ${{ steps.build.outputs.dir }} - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: path: output/${{ steps.build.outputs.tgz }} + name: artifact-${{ matrix.variant }}-{{ matrix.platform }} release: name: Release Infix ${{ github.ref_name }} needs: build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/download-artifact@v3 + - uses: actions/checkout@v4 + - uses: actions/download-artifact@v4 + pattern: "artifact-*" + merge-multiple: true - name: Extract ChangeLog entry ... run: | awk '/^-----*$/{if (x == 1) exit; x=1;next}x' doc/ChangeLog.md \