2222 build :
2323 name : ${{ matrix.friendlyName }} ${{ matrix.arch }}
2424 runs-on : ${{ matrix.os }}
25+ container : ${{ matrix.image }}
2526 strategy :
2627 fail-fast : false
2728 matrix :
@@ -37,11 +38,23 @@ jobs:
3738 - os : ubuntu-22.04
3839 friendlyName : Linux
3940 targetPlatform : ubuntu
41+ image : ' ubuntu:20.04'
4042 exclude :
4143 - os : windows-latest
4244 arch : arm64
4345 timeout-minutes : 20
4446 steps :
47+ - name : Install dependencies into dockerfile on Ubuntu
48+ if : matrix.targetPlatform == 'ubuntu'
49+ run : |
50+ apt-get update
51+ DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common lsb-release sudo wget curl build-essential jq autoconf automake pkg-config ca-certificates
52+ sudo add-apt-repository ppa:git-core/ppa -y
53+ sudo apt-get update
54+ sudo apt-get install -y git
55+ curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
56+ sudo apt-get install -y nodejs
57+ git config --global --add safe.directory '*'
4558 # We need to use Xcode 14.3.1 for maximum compatibility with older macOS (x64)
4659 - name : Switch to oldest available Xcode
4760 if : matrix.targetPlatform == 'macOS' && matrix.arch == 'x64'
7083 if : matrix.targetPlatform == 'ubuntu' && matrix.arch == 'x64'
7184 run : |
7285 sudo apt-get update
73- sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext
86+ sudo apt-get install -y libcurl4-gnutls-dev libexpat1-dev zlib1g-dev gettext libssl-dev
7487 - name : Install extra dependencies for building Git on Ubuntu (arm64)
7588 if : matrix.targetPlatform == 'ubuntu' && matrix.arch == 'arm64'
7689 run : |
7992 echo "deb [arch=arm64,armhf] http://azure.ports.ubuntu.com/ $(lsb_release -s -c)-updates main universe multiverse restricted" | sudo tee -a /etc/apt/sources.list
8093 sudo dpkg --add-architecture arm64
8194 sudo apt-get update
82- sudo apt-get install gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu libcurl4-gnutls-dev:arm64 zlib1g-dev:arm64 libbrotli-dev:arm64 gettext
95+ sudo apt-get install -y gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu libcurl4-gnutls-dev:arm64 zlib1g-dev:arm64 libbrotli-dev:arm64 gettext
8396 - name : Build
8497 shell : bash
8598 run : script/build.sh
0 commit comments