Skip to content

Commit 4fafa4b

Browse files
authored
remove missing flag for Linux (#6)
Signed-off-by: hectorj2f <[email protected]>
1 parent 48f51f7 commit 4fafa4b

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

action.yaml

+15-1
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,22 @@ runs:
4040
shaprog() {
4141
case ${{ runner.os }} in
4242
Linux)
43-
sha256sum --ignore-missing --check $2
43+
case ${{ runner.arch }} in
44+
X64)
45+
cat $2 | grep gptscript-v${{ inputs.gptscript-release }}-linux-amd64.tar.gz | sha256sum -c
46+
;;
47+
48+
ARM64)
49+
cat $2 | grep gptscript-v${{ inputs.gptscript-release }}-linux-arm64.tar.gz | sha256sum -c
50+
;;
51+
52+
*)
53+
log_error "unsupported architecture $arch"
54+
exit 1
55+
;;
56+
esac
4457
;;
58+
4559
macOS)
4660
shasum -a256 --ignore-missing --check $2
4761
;;

0 commit comments

Comments
 (0)