7979 shell : bash
8080 run : |
8181 printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Download 'jq' and copy to Git Bash ..."
82- curl -L -o /usr/bin/jq.exe https://github.com/jqlang/jq/releases/latest/download/jq-win64.exe
82+ curl -L --fail https://github.com/jqlang/jq/releases/latest/download/jq-win64.exe -o /usr/bin/jq .exe
8383 printf "::endgroup::\n"
8484
8585 - name : Download and install GHDL
8989 # Download and install GHDL
9090 ANSI_LIGHT_RED=$'\x1b[91m'
9191 ANSI_LIGHT_GREEN=$'\x1b[92m'
92- ANSI_LIGHT_BLUE="\e [94m"
92+ ANSI_LIGHT_BLUE=$'\x1b [94m'
9393 ANSI_NOCOLOR=$'\x1b[0m'
9494
9595 if [[ "${{ runner.os }}" == "Linux" ]]; then
@@ -152,7 +152,7 @@ runs:
152152 # A generic test for supported named versions or tagged versions.
153153 if [[ "${{ inputs.version }}" == "latest" ]]; then
154154 # TODO: could be read from nightly's inventory.json
155- VERSION_IN_URL="v5.0.0 "
155+ VERSION_IN_URL="v5.0.1 "
156156 elif [[ "${{ inputs.version }}" =~ ^v[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}(-rc[0-9]+)?|nightly$ ]]; then
157157 VERSION_IN_URL="${{ inputs.version }}"
158158 elif [[ "${{ inputs.version }}" =~ ^[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}(-rc[0-9]+)?$ ]]; then
@@ -174,7 +174,7 @@ runs:
174174
175175 DOWNLOAD_URL="https://github.com/ghdl/ghdl/releases/download/${VERSION_IN_URL}/inventory.json"
176176 printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Downloading release inventory file from '${DOWNLOAD_URL}' ..."
177- curl -L "${DOWNLOAD_URL}" -o inventory.json
177+ curl -L --fail "${DOWNLOAD_URL}" -o inventory.json
178178 retCode=$?
179179 printf "::endgroup::\n Downloading release inventory "
180180 if [[ $retCode -eq 0 ]]; then
@@ -243,7 +243,7 @@ runs:
243243 downloadFile="$(jq -r ".files.ghdl.\"${osName,,}\".\"${osMajorVersion}\".\"${osArchitecture}\".\"${osRuntime}\".\"${{ inputs.backend }}\".file" inventory.json)"
244244 downloadFile="${downloadFile#*/}"
245245 printf "::group::${ANSI_LIGHT_BLUE}%s${ANSI_NOCOLOR}\n" "Downloading asset from '${downloadBase}/${downloadFile}' ..."
246- curl -L "${downloadBase}/${downloadFile}" -o "${downloadFile}"
246+ curl -L --fail "${downloadBase}/${downloadFile}" -o "${downloadFile}"
247247 retCode=$?
248248 printf "::endgroup::\n Downloading GHDL installation archive "
249249 if [[ $retCode -eq 0 ]]; then
0 commit comments