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:
ChristopherHX
2023-08-26 22:22:05 +02:00
committed by GitHub
parent 60cbcc9f33
commit 4f6bdf85e1
9 changed files with 228 additions and 136 deletions
+9 -1
View File
@@ -32,8 +32,16 @@ rm /tmp/powershell.tar.gz
printf "\n\t🐋 Installed PWSH 🐋\t\n"
pwsh -v
case "$(uname -m)" in
'aarch64')
printf "\n\t🐋 Skip Installing PowerShell modules, due to crash maybe caused by qemu 🐋\t\n"
exit 0
;;
*)
modules=("MarkdownPS" "Pester" "PSScriptAnalyzer")
;;
esac
printf "\n\t🐋 Installing PowerShell modules 🐋\t\n"
modules=("MarkdownPS" "Pester" "PSScriptAnalyzer")
pwsh -nol -nop -c "Set-PSRepository -Name PSGallery -InstallationPolicy Trusted"