Skip to content

Commit

Permalink
fix(ci): fix file paths in CI-generated *.sha256 files on *nix
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Mar 22, 2024
1 parent 9c0971b commit 1c612cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ci/prepare-deploy.bash
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ set -u -e
cp target/"$TARGET"/release/rustup-init target/"$TARGET"/release/rustup-setup

# Generate hashes
pushd target/"$TARGET"/release/
if [ "$(uname -s)" = "Darwin" ]; then
find target/"$TARGET"/release/ -maxdepth 1 -type f -exec sh -c 'fn="$1"; shasum -a 256 -b "$fn" > "$fn".sha256' sh {} \;
find . -maxdepth 1 -type f -exec sh -c 'fn="$1"; shasum -a 256 -b "$fn" > "$fn".sha256' sh {} \;
else
find target/"$TARGET"/release/ -maxdepth 1 -type f -exec sh -c 'fn="$1"; sha256sum -b "$fn" > "$fn".sha256' sh {} \;
find . -maxdepth 1 -type f -exec sh -c 'fn="$1"; sha256sum -b "$fn" > "$fn".sha256' sh {} \;
fi
popd

# The directory for deployment artifacts
dest="deploy"
Expand Down

0 comments on commit 1c612cf

Please sign in to comment.