Skip to content

Commit

Permalink
fix: generate multiple shasums for homebrew tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Feb 15, 2025
1 parent 33e9d35 commit c7e0b0b
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/brew-tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,21 @@ jobs:
run: |
set -euox pipefail
just=$(which just)
OUTDIR="./brew-out"
SHASUM_FILE="./homebrew-CHECKSUM"
SHASUM_DIR="./brew-sum"
TARBALL_FILENAME="homebrew-$(arch).tar.zst"
$just generate-homebrew-tarball ${OUTDIR} ${TARBALL_FILENAME}
sha256sum "$OUTDIR/$TARBALL_FILENAME" >> $SHASUM_FILE
mkdir -p $SHASUM_DIR
for spice in 1 256 512 ; do
"sha${spice}sum" "$OUTDIR/$TARBALL_FILENAME" | tee "$SHASUM_DIR/homebrew-$(arch).sha${spice}"
done
echo "outdir=$(realpath $OUTDIR)" >> "$GITHUB_OUTPUT"
echo "tarball_file=$(realpath $OUTDIR)/$TARBALL_FILENAME" >> "$GITHUB_OUTPUT"
echo "shasum_file=$(realpath $SHASUM_FILE)" >> "$GITHUB_OUTPUT"
echo "shasum_dir=$(realpath $SHASUM_DIR)" >> "$GITHUB_OUTPUT"
- name: Upload to Job Artifacts
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
Expand Down Expand Up @@ -61,4 +68,4 @@ jobs:
make_latest: true
files: |
${{ steps.generate_tarball.outputs.tarball_file }}
${{ steps.generate_tarball.outputs.shasum_file }}
${{ steps.generate_tarball.outputs.shasum_dir }}/*

0 comments on commit c7e0b0b

Please sign in to comment.