enable arm64 builds (#94)
* enable arm64 builds * Add `[skip build-base]` conditional for PRs * only setup arm64 arch in qemu * fix permission java-tools * go default to 1.20 and fix pwsh * exclude lib32z1 for arm64 * increase npm timeout for qemu * Try to speed up npm under qemu * make npm verbose * Use http registry * Another test * Use less build resources * fix dockerhub tag * Fix building
This commit is contained in:
@@ -16,11 +16,20 @@ go_arch() {
|
||||
esac
|
||||
}
|
||||
|
||||
toolcache_arch() {
|
||||
case "$(uname -m)" in
|
||||
'aarch64') echo 'arm64' ;;
|
||||
'x86_64') echo 'x64' ;;
|
||||
'armv7l') echo 'armv7l' ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
}
|
||||
|
||||
DEFVER=$(jq -r '.toolcache[] | select(.name == "go") | .default' "/imagegeneration/toolset.json")
|
||||
for V in $(jq -r '.toolcache[] | select(.name == "go") | .versions[]' "/imagegeneration/toolset.json"); do
|
||||
printf "\n\t🐋 Installing GO=%s 🐋\t\n" "${V}"
|
||||
VER=$(jq -r "[.[] | select(.version|test(\"^${V}\"))][0].version" "/tmp/go-toolset.json")
|
||||
GOPATH="$AGENT_TOOLSDIRECTORY/go/${VER}/x64"
|
||||
GOPATH="$AGENT_TOOLSDIRECTORY/go/${VER}/$(toolcache_arch)"
|
||||
|
||||
mkdir -v -m 0777 -p "$GOPATH"
|
||||
DL_VER="${VER}"
|
||||
|
||||
Reference in New Issue
Block a user