Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanato committed Feb 21, 2024
1 parent 17b796b commit f731a9b
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
gptscript-release:
description: 'gptscript release version to be installed'
required: false
default: 'v0.1.1'
default: '0.1.1'
install-dir:
description: 'Where to install the gptscript binary'
required: false
Expand Down Expand Up @@ -63,11 +63,11 @@ runs:
Linux)
case ${{ runner.arch }} in
X64)
desired_gptscript_filename='gptscript-${{ inputs.gptscript-release }}-linux-amd64.tar.gz'
desired_gptscript_filename='gptscript-v${{ inputs.gptscript-release }}-linux-amd64.tar.gz'
;;
ARM64)
desired_gptscript_filename='gptscript-${{ inputs.gptscript-release }}-linux-arm64.tar.gz'
desired_gptscript_filename='gptscript-v${{ inputs.gptscript-release }}-linux-arm64.tar.gz'
;;
*)
Expand All @@ -80,11 +80,11 @@ runs:
macOS)
case ${{ runner.arch }} in
X64)
desired_gptscript_filename='gptscript-${{ inputs.gptscript-release }}-macOS-universal.tar.gz'
desired_gptscript_filename='gptscript-v${{ inputs.gptscript-release }}-macOS-universal.tar.gz'
;;
ARM64)
desired_gptscript_filename='gptscript-${{ inputs.gptscript-release }}-macOS-universal.tar.gz'
desired_gptscript_filename='gptscript-v${{ inputs.gptscript-release }}-macOS-universal.tar.gz'
;;
*)
Expand All @@ -97,7 +97,7 @@ runs:
Windows)
case ${{ runner.arch }} in
X64)
desired_gptscript_filename='gptscript-${{ inputs.gptscript-release }}-windows-amd64.zip'
desired_gptscript_filename='gptscript-v${{ inputs.gptscript-release }}-windows-amd64.zip'
;;
*)
log_error "unsupported architecture $arch"
Expand Down Expand Up @@ -126,10 +126,9 @@ runs:
fi
# Download custom gptscript
log_info "Downloading platform-specific version '${{ inputs.gptscript-release }}' of gptscript...\n https://github.com/gptscript-ai/gptscript/releases/download/${{ inputs.gptscript-release }}/${desired_gptscript_filename}"
# $SUDO curl -sL https://github.com/gptscript-ai/gptscript/releases/download/${{ inputs.gptscript-release }}/${desired_gptscript_filename} -o ${desired_gptscript_filename}
$SUDO curl -sL https://github.com/gptscript-ai/gptscript/releases/download/v0.1.1/gptscript-v0.1.1-linux-amd64.tar.gz -o ${desired_gptscript_filename}
$SUDO curl -sL https://github.com/gptscript-ai/gptscript/releases/download/${{ inputs.gptscript-release }}/checksums.txt -o checksums.txt
log_info "Downloading platform-specific version 'v${{ inputs.gptscript-release }}' of gptscript...\n https://github.com/gptscript-ai/gptscript/releases/download/v${{ inputs.gptscript-release }}/${desired_gptscript_filename}"
# $SUDO curl -sL https://github.com/gptscript-ai/gptscript/releases/download/v${{ inputs.gptscript-release }}/${desired_gptscript_filename} -o ${desired_gptscript_filename}
$SUDO curl -sL https://github.com/gptscript-ai/gptscript/releases/download/v${{ inputs.gptscript-release }}/checksums.txt -o checksums.txt
cat checksums.txt
sha256sum ${desired_gptscript_filename}
if [[ ${{ runner.os }} == "Windows" ]]; then
Expand Down

0 comments on commit f731a9b

Please sign in to comment.