ci: Use BuildJet Ubuntu 20.04 runners for better glibc compatibility (#18442)

Use BuildJet Ubuntu 20.04 runners.
- Linux arm64 unchanged (glibc >= 2.35)
- Linux x64 glibc requirement becomes to >= 2.31 (from glibc >= 2.35).

Note: Ubuntu 20.04 repo cmake (3.16.3) is normally too old to build Zed, but `ubuntu-2004` [includes cmake
3.30.3](https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2004-Readme.md#tools).
This commit is contained in:
Peter Tripp 2024-09-30 17:02:19 -04:00 committed by GitHub
parent 09424edc35
commit 432de00e89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 56 additions and 9 deletions

View file

@ -20,19 +20,29 @@ if [[ -n $apt ]]; then
libwayland-dev
libxkbcommon-x11-dev
libssl-dev
libstdc++-12-dev
libzstd-dev
libvulkan1
libgit2-dev
make
cmake
clang
mold
jq
gettext-base
elfutils
libsqlite3-dev
)
# Ubuntu 20.04 / Debian Bullseye (including CI for release)
if grep -q "bullseye" /etc/debian_version; then
deps+=(
libstdc++-10-dev
)
else
deps+=(
libstdc++-12-dev
mold
)
fi
$maysudo "$apt" update
$maysudo "$apt" install -y "${deps[@]}"
exit 0