I recently came across building alpha 27 on ubuntu 22.04 as there currently no builds in ppa. I managed to do so by following sequence in shell:
install packages:
sudo apt install build-essential cargo cmake libboost-dev libboost-system-dev \
libboost-filesystem-dev libcurl4-gnutls-dev libenet-dev libfmt-dev \
libfreetype-dev m4 libgloox-dev libicu-dev libminiupnpc-dev libnvtt-dev \
libogg-dev libopenal-dev libpng-dev libsdl2-dev libsodium-dev libvorbis-dev \
libwxgtk3.0-gtk3-dev libxml2-dev python3 rustc subversion zlib1g-dev
and compile:
cd 0ad-sources
(cd libraries/ && ./build-source-libs.sh -j11)
(cd build/workspaces && ./update-workspaces.sh -j11 && cd gcc && make -j11)
This way everything went well. Maybe someone helps this, as the normal way with just running update-workspaces.sh failed on premake5 error.