Skip to content

Commit a8ae2e0

Browse files
committed
handle macos separately
1 parent 4bbbb36 commit a8ae2e0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/test-cli-plugin-manifest.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@ jobs:
2727
- runner: macos-latest
2828
target: x86_64-apple-darwin
2929
platform: darwin-amd64
30+
os: macOS
3031
- runner: macos-latest
3132
target: aarch64-apple-darwin
3233
platform: darwin-arm64
34+
os: macOS
3335
- runner: windows-latest
3436
platform: windows-amd64
3537
target: x86_64-pc-windows-msvc
@@ -114,6 +116,8 @@ jobs:
114116
# Calculate SHA256 of the binary
115117
if [[ "${{ matrix.platform }}" == "windows-amd64" ]]; then
116118
SHA256=$(certutil -hashfile cli/${{ matrix.platform }}/hasura-ndc-sqlserver.exe SHA256 | grep -v "hash" | awk '{print $1}')
119+
elif [[ "${{ matrix.os }}" == "macOS" ]]; then
120+
SHA256=$(shasum -a 256 cli/${{ matrix.platform }}/hasura-ndc-sqlserver | cut -d' ' -f1)
117121
else
118122
SHA256=$(sha256sum cli/${{ matrix.platform }}/hasura-ndc-sqlserver | cut -d' ' -f1)
119123
fi

0 commit comments

Comments
 (0)