ci: Switch to Ubuntu 24.04
This commit is contained in:
@@ -53,14 +53,15 @@ for phase in "${PHASES[@]}"; do
|
||||
SETUP)
|
||||
info "Setup phase"
|
||||
# This is added by default, and it is often broken, but we don't need anything from it
|
||||
rm -f /etc/apt/sources.list.d/microsoft-prod.list
|
||||
# PPA with some newer build dependencies
|
||||
add-apt-repository -y --no-update ppa:upstream-systemd-ci/systemd-ci
|
||||
add-apt-repository -y --no-update --enable-source
|
||||
rm -f /etc/apt/sources.list.d/microsoft-prod.{list,sources}
|
||||
# add-apt-repository --enable-source does not work on deb822 style sources.
|
||||
for f in /etc/apt/sources.list.d/*.sources; do
|
||||
sed -i "s/Types: deb/Types: deb deb-src/g" "$f"
|
||||
done
|
||||
apt-get -y update
|
||||
apt-get -y build-dep systemd
|
||||
apt-get -y install "${ADDITIONAL_DEPS[@]}"
|
||||
pip3 install -r .github/workflows/requirements.txt --require-hashes
|
||||
pip3 install -r .github/workflows/requirements.txt --require-hashes --break-system-packages
|
||||
|
||||
# Make sure the build dir is accessible even when drop privileges, otherwise the unprivileged
|
||||
# part of test-execute gets skipped, since it can't run systemd-executor
|
||||
@@ -71,6 +72,8 @@ for phase in "${PHASES[@]}"; do
|
||||
if [[ "$phase" =~ ^RUN_CLANG ]]; then
|
||||
export CC=clang
|
||||
export CXX=clang++
|
||||
export CFLAGS="-fno-sanitize=function"
|
||||
export CXXFLAGS="-fno-sanitize=function"
|
||||
if [[ "$phase" == RUN_CLANG ]]; then
|
||||
# The docs build is slow and is not affected by compiler/flags, so do it just once
|
||||
MESON_ARGS+=(-Dman=enabled)
|
||||
@@ -95,6 +98,8 @@ for phase in "${PHASES[@]}"; do
|
||||
if [[ "$phase" =~ ^RUN_CLANG_ASAN_UBSAN ]]; then
|
||||
export CC=clang
|
||||
export CXX=clang++
|
||||
export CFLAGS="-fno-sanitize=function"
|
||||
export CXXFLAGS="-fno-sanitize=function"
|
||||
# Build fuzzer regression tests only with clang (for now),
|
||||
# see: https://github.com/systemd/systemd/pull/15886#issuecomment-632689604
|
||||
# -Db_lundef=false: See https://github.com/mesonbuild/meson/issues/764
|
||||
|
||||
Reference in New Issue
Block a user