Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions actions/setup/sh/install_awf_binary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ trap 'rm -rf "$TEMP_DIR"' EXIT

# Download checksums
echo "Downloading checksums from ${CHECKSUMS_URL@Q}..."
curl -fsSL --retry 5 --retry-delay 10 --retry-max-time 180 -o "${TEMP_DIR}/checksums.txt" "${CHECKSUMS_URL}"
curl -fsSL --retry 10 --retry-delay 30 --retry-max-time 360 -o "${TEMP_DIR}/checksums.txt" "${CHECKSUMS_URL}"

verify_checksum() {
local file="$1"
Expand Down Expand Up @@ -120,7 +120,7 @@ install_bundle() {

echo "Node.js >= 20 detected ($(node --version)), using lightweight bundle..."
echo "Downloading bundle from ${bundle_url@Q}..."
if ! curl -fsSL --retry 5 --retry-delay 10 --retry-max-time 180 -o "${TEMP_DIR}/${bundle_name}" "${bundle_url}"; then
if ! curl -fsSL --retry 10 --retry-delay 30 --retry-max-time 360 -o "${TEMP_DIR}/${bundle_name}" "${bundle_url}"; then
echo "⚠ Bundle download failed (asset may not exist for this version)"
return 1
fi
Expand Down Expand Up @@ -159,7 +159,7 @@ install_linux_binary() {

local binary_url="${BASE_URL}/${awf_binary}"
echo "Downloading binary from ${binary_url@Q}..."
curl -fsSL --retry 5 --retry-delay 10 --retry-max-time 180 -o "${TEMP_DIR}/${awf_binary}" "${binary_url}"
curl -fsSL --retry 10 --retry-delay 30 --retry-max-time 360 -o "${TEMP_DIR}/${awf_binary}" "${binary_url}"

# Verify checksum
verify_checksum "${TEMP_DIR}/${awf_binary}" "${awf_binary}"
Expand All @@ -184,7 +184,7 @@ install_darwin_binary() {

local binary_url="${BASE_URL}/${awf_binary}"
echo "Downloading binary from ${binary_url@Q}..."
curl -fsSL --retry 5 --retry-delay 10 --retry-max-time 180 -o "${TEMP_DIR}/${awf_binary}" "${binary_url}"
curl -fsSL --retry 10 --retry-delay 30 --retry-max-time 360 -o "${TEMP_DIR}/${awf_binary}" "${binary_url}"

# Verify checksum
verify_checksum "${TEMP_DIR}/${awf_binary}" "${awf_binary}"
Expand Down