Skip to content

Commit

Permalink
Upgrade actions/upload-artifact to match actions/download-artifact (#…
Browse files Browse the repository at this point in the history
…5428)

* Upgrade actions/upload-artifact to match actions/download-artifact

* Separate digests by platform

* Merge artifacts

* Fix artifact name
  • Loading branch information
rdettai authored Sep 16, 2024
1 parent bef4143 commit 740b2ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/actions/cargo-build-macos-binary/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ runs:
BINARY_VERSION=${{ inputs.version }} ARCHIVE_NAME=${{ env.ASSET_FULL_NAME }}
shell: bash
- name: Save binary archive for three days
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.4.0
with:
name: ${{ env.ASSET_FULL_NAME }}.tar.gz
path: ./${{ env.ASSET_FULL_NAME }}.tar.gz
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/cross-build-binary/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ runs:
BINARY_VERSION=${{ inputs.version }} ARCHIVE_NAME=${{ env.ASSET_FULL_NAME }}
shell: bash
- name: Save binary archive for three days
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.4.0
with:
name: ${{ env.ASSET_FULL_NAME }}.tar.gz
path: ./${{ env.ASSET_FULL_NAME }}.tar.gz
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/publish_docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ jobs:
include:
- os: ubuntu-latest
platform: linux/amd64
platform_suffix: amd64
- os: gh-ubuntu-arm64
platform: linux/arm64
platform_suffix: arm64
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
Expand Down Expand Up @@ -79,9 +81,9 @@ jobs:
touch "/tmp/digests/${digest#sha256:}"
- name: Upload digest
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4.4.0
with:
name: digest
name: digest-${{ matrix.platform_suffix }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
Expand All @@ -93,8 +95,9 @@ jobs:
- name: Download digests
uses: actions/[email protected]
with:
name: digest
pattern: digest-*
path: /tmp/digests
merge-multiple: true

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit 740b2ba

Please sign in to comment.