Skip to content

Commit

Permalink
CI: fix warnings with certain actions using deprecated node version
Browse files Browse the repository at this point in the history
The following actions have been updated to use the latest versions:
 - actions/upload-artifact: v3 -> v4
 - actions/download-artifact: v3 -> v4
 - docker/setup-qemu-user: v2 -> v3
 - softprops/action-gh-release: v1 -> v2

Also migrate upload-artifact configuration to use a unique artifact name
per job due to artifacts becoming immutable.

Signed-off-by: Eric Richter <[email protected]>
  • Loading branch information
erichte-ibm committed Oct 10, 2024
1 parent c863fa4 commit 781ff1b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
submodules: 'recursive'

- name: prepare qemu
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
with:
platforms: "${{ matrix.arch }}"

Expand All @@ -49,9 +49,9 @@ jobs:
run: docker run -t --platform linux/${{ matrix.arch }} -v $(pwd):/build ${IMAGE_NAME} bash -c "cd build && ci/build-rpm.sh"

- name: upload rpms
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.arch }}
name: ${{ env.IMAGE_NAME }}
path: rpms/*

staticbuild:
Expand All @@ -67,7 +67,7 @@ jobs:
with:
submodules: 'recursive'

- uses: docker/setup-qemu-action@v2
- uses: docker/setup-qemu-action@v3
with:
platforms: "${{ matrix.arch }}"

Expand All @@ -78,20 +78,20 @@ jobs:
run: docker run -t --platform linux/${{ matrix.arch }} -v $(pwd):/build -e ARCH=${{ matrix.arch }} alpine-${{ matrix.arch }} bash -c "cd build && ci/build-static.sh"

- name: upload rpms
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: static
name: static-${{ matrix.arch }}
path: secvarctl.${{ matrix.arch }}

release:
runs-on: ubuntu-latest
needs: ["rpmbuild", "staticbuild"]
steps:
- name: download rpms
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: generate release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
prerelease: ${{ contains(github.ref_name, '-') }}
files: |
Expand Down

0 comments on commit 781ff1b

Please sign in to comment.