diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index e5c98a901..14d63f4fb 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -132,16 +132,16 @@ jobs: run: | ./util/test_multiplayer.sh - # Build with prometheus-cpp (server-only) - clang_11_prometheus: - name: "clang_11 (PROMETHEUS=1)" - runs-on: ubuntu-22.04 + # Build with prometheus-cpp (server-only), also runs on ARM64 + clang_prometheus_arm: + name: "clang (with Prometheus, ARM64)" + runs-on: ubuntu-24.04-arm steps: - uses: actions/checkout@v4 - name: Install deps run: | source ./util/ci/common.sh - install_linux_deps clang-11 + install_linux_deps --headless clang libluajit-5.1-dev - name: Build prometheus-cpp run: ./util/ci/build_prometheus_cpp.sh @@ -150,8 +150,8 @@ jobs: run: | ./util/ci/build.sh env: - CC: clang-11 - CXX: clang++-11 + CC: clang + CXX: clang++ CMAKE_FLAGS: "-DENABLE_PROMETHEUS=1 -DBUILD_CLIENT=0 -DENABLE_CURSES=0" - name: Test diff --git a/util/ci/common.sh b/util/ci/common.sh index 374aabf5f..4ee68c8b9 100644 --- a/util/ci/common.sh +++ b/util/ci/common.sh @@ -2,12 +2,19 @@ # Linux build only install_linux_deps() { + local graphics=1 + if [[ "$1" == "--headless" ]]; then + graphics= + shift + fi local pkgs=( cmake gettext postgresql + libsqlite3-dev libhiredis-dev libogg-dev libgmp-dev libpq-dev + libleveldb-dev libcurl4-openssl-dev libzstd-dev libssl-dev + ) + [ -n "$graphics" ] && pkgs+=( libpng-dev libjpeg-dev libgl1-mesa-dev libsdl2-dev libfreetype-dev - libsqlite3-dev libhiredis-dev libogg-dev libgmp-dev libvorbis-dev - libopenal-dev libpq-dev libleveldb-dev libcurl4-openssl-dev libzstd-dev - libssl-dev + libogg-dev libvorbis-dev libopenal-dev ) sudo apt-get update