Skip to content

Commit e97a981

Browse files
committed
chore: redirect sha256sum to shasum -a 256 on mac runner
dist installation checks the installation with sha256sum, which does not exist on macos
1 parent 70e7fbf commit e97a981

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,14 @@ jobs:
125125
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
126126
fi
127127
128+
- name: Install sha256sum (macOS ARM64)
129+
if: ${{ runner.os == 'macOS' && runner.arch == 'ARM64' }}
130+
shell: bash
131+
run: |
132+
printf '#!/bin/sh\nexec shasum -a 256 "$@"\n' > /tmp/sha256sum
133+
chmod +x /tmp/sha256sum
134+
echo /tmp >> "$GITHUB_PATH"
135+
128136
- name: Install dist
129137
run: ${{ matrix.install_dist.run }}
130138

0 commit comments

Comments
 (0)