From 5fe8d54d0c7c5ae7e44ec16289ef4cdd7a6075e1 Mon Sep 17 00:00:00 2001 From: dal Date: Wed, 12 Feb 2025 09:32:04 -0700 Subject: [PATCH] shasum command on action --- .github/workflows/cli-release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cli-release.yml b/.github/workflows/cli-release.yml index f2b6ad2fb..c958cca1b 100644 --- a/.github/workflows/cli-release.yml +++ b/.github/workflows/cli-release.yml @@ -69,7 +69,11 @@ jobs: run: | cd target/${{ matrix.target }}/release tar czf ${{ matrix.artifact_name }} buster-cli - sha256sum ${{ matrix.artifact_name }} > ${{ matrix.artifact_name }}.sha256 + if [[ "${{ runner.os }}" == "macOS" ]]; then + shasum -a 256 ${{ matrix.artifact_name }} > ${{ matrix.artifact_name }}.sha256 + else + sha256sum ${{ matrix.artifact_name }} > ${{ matrix.artifact_name }}.sha256 + fi - name: Compress binary (Windows) if: matrix.use_tar == false