Skip to content

Commit ca45beb

Browse files
committed
ci: test sha generation in pr
1 parent 77d5e0a commit ca45beb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/actions/build-binaries/action.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,13 @@ runs:
4242
fi
4343
cd -
4444
- name: Generate SHA-256 and Save to File
45-
run: shasum -a 256 ${{ matrix.platform.name }} > ${{ matrix.platform.name }}.sha256
4645
shell: bash
46+
run: |
47+
if command -v shasum >/dev/null 2>&1; then
48+
shasum -a 256 "${{ matrix.platform.name }}" > "${{ matrix.platform.name }}.sha256"
49+
else
50+
sha256sum "${{ matrix.platform.name }}" > "${{ matrix.platform.name }}.sha256"
51+
fi
4752
- name: Generate artifact attestation
4853
if: inputs.publish == 'true'
4954
uses: actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # ratchet:actions/attest-build-provenance@v2

0 commit comments

Comments
 (0)