diff --git a/action.yaml b/action.yaml index 63eb63b..0ab1958 100644 --- a/action.yaml +++ b/action.yaml @@ -40,8 +40,22 @@ runs: shaprog() { case ${{ runner.os }} in Linux) - sha256sum --ignore-missing --check $2 + case ${{ runner.arch }} in + X64) + sha256sum -c gptscript-v${{ inputs.gptscript-release }}-linux-amd64.tar.gz + ;; + + ARM64) + sha256sum -c gptscript-v${{ inputs.gptscript-release }}-linux-arm64.tar.gz + ;; + + *) + log_error "unsupported architecture $arch" + exit 1 + ;; + esac ;; + macOS) shasum -a256 --ignore-missing --check $2 ;;