4f6bdf85e1
* 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
19 lines
970 B
Bash
Executable File
19 lines
970 B
Bash
Executable File
#!/bin/bash -e
|
|
################################################################################
|
|
## File: basic.sh
|
|
## Desc: Installs basic command line utilities and dev packages
|
|
################################################################################
|
|
# source: https://github.com/actions/virtual-environments/blob/5ae2170ebe90a53e1cdc9c507ed3e0f1471d6b66/images/linux/scripts/helpers/install.sh
|
|
|
|
apt-get update
|
|
# lib32z1 is not available for arm64 remove it via jq
|
|
case "$(uname -m)" in
|
|
'x86_64') common_packages_filter="" ;;
|
|
*) common_packages_filter="del(.apt.common_packages[] | select(. == \"lib32z1\"))" ;;
|
|
esac
|
|
common_packages=$(jq -r "$common_packages_filter .apt.common_packages[]" "/imagegeneration/toolset.json")
|
|
cmd_packages=$(jq -r ".apt.cmd_packages[]" "/imagegeneration/toolset.json")
|
|
# we depend on re-splitting behaviour here
|
|
# shellcheck disable=SC2068
|
|
apt-get install -y --no-install-recommends ${common_packages[@]} ${cmd_packages[@]}
|