From ac7e98ec9b45ff0ee6dac4f41e38e7902a356cb7 Mon Sep 17 00:00:00 2001 From: UebelAndre Date: Tue, 10 Dec 2024 14:24:12 -0800 Subject: [PATCH] Fix release workflow (#3079) This was a regression from https://github.com/bazelbuild/rules_rust/pull/3070 --- .github/workflows/release.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 8b713e73d6..92f9759cdc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -144,6 +144,14 @@ jobs: --exclude="examples" \ . + # Save the sha256 checksum of the distro archive to the environment + sha256_base64="$(shasum --algorithm 256 ${{ github.workspace }}/.github/rules_rust.tar.gz | awk '{ print $1 }' | xxd -r -p | base64)" + echo "ARCHIVE_SHA256_BASE64=${sha256_base64}" >> $GITHUB_ENV + env: + CARGO_BAZEL_GENERATOR_URL: file://${{ github.workspace }}/crate_universe/target/artifacts/x86_64-unknown-linux-gnu/cargo-bazel + ARTIFACTS_DIR: ${{ github.workspace }}/crate_universe/target/artifacts + URL_PREFIX: https://github.com/${{ github.repository_owner }}/rules_rust/releases/download/${{ env.RELEASE_VERSION }} + # Upload the artifact in case creating a release fails so all artifacts can then be manually recovered. - uses: actions/upload-artifact@v3 with: