workflows: update workflows, templates to support arm64. (#14653)

* set 'var_arm64' to no in all ct scripts

* update files in .github to support arm64
This commit is contained in:
Sam Heinz
2026-05-23 07:46:44 +10:00
committed by GitHub
parent fcd77d9332
commit 69aa93a83a
518 changed files with 546 additions and 10 deletions
+18 -10
View File
@@ -49,18 +49,26 @@ jobs:
return
fi
local url="https://pkgs.alpinelinux.org/package/v${alpine_ver}/main/x86_64/nodejs"
local page
page=$(curl -sf "$url" 2>/dev/null || echo "")
local full_ver=""
if [[ -n "$page" ]]; then
# Parse: "Version | 24.13.0-r1" or similar table row
full_ver=$(echo "$page" | grep -oP 'Version\s*\|\s*\K[0-9]+\.[0-9]+\.[0-9]+' | head -1 || echo "")
if [[ -z "$full_ver" ]]; then
# Fallback: look for version pattern after "Version"
full_ver=$(echo "$page" | grep -oP '(?<=Version</td><td>)[0-9]+\.[0-9]+\.[0-9]+' | head -1 || echo "")
local arch_label url_arch url page
for arch_pair in "amd64:x86_64" "arm64:aarch64"; do
arch_label="${arch_pair%%:*}"
url_arch="${arch_pair#*:}"
url="https://pkgs.alpinelinux.org/package/v${alpine_ver}/main/${url_arch}/nodejs"
page=$(curl -sf "$url" 2>/dev/null || echo "")
if [[ -n "$page" ]]; then
# Parse: "Version | 24.13.0-r1" or similar table row.
full_ver=$(echo "$page" | grep -oP 'Version\s*\|\s*\K[0-9]+\.[0-9]+\.[0-9]+' | head -1 || echo "")
if [[ -z "$full_ver" ]]; then
# Fallback: look for version pattern after "Version".
full_ver=$(echo "$page" | grep -oP '(?<=Version</td><td>)[0-9]+\.[0-9]+\.[0-9]+' | head -1 || echo "")
fi
fi
fi
if [[ -n "$full_ver" ]]; then
echo "Resolved Alpine ${alpine_ver} nodejs via ${arch_label}"
break
fi
done
local major=""
if [[ -n "$full_ver" ]]; then