From d420732016cac62c143900096e45b5140af2bf9f Mon Sep 17 00:00:00 2001 From: "Aleksei (Faumaray) Selikhov" Date: Sat, 5 Dec 2026 14:42:27 +0300 Subject: [PATCH] ci: probe GCC 16 and CMake 4 installation --- .gitea/workflows/probe.yml | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/probe.yml b/.gitea/workflows/probe.yml index a00a8fe..f853a32 100644 --- a/.gitea/workflows/probe.yml +++ b/.gitea/workflows/probe.yml @@ -1,4 +1,4 @@ -# Temporary diagnostic workflow: reports the toolchain of a runner. +# Temporary diagnostic workflow: can the ubuntu runner install the required toolchain? name: Probe runner on: workflow_dispatch: @@ -6,14 +6,18 @@ jobs: probe: runs-on: ubuntu-latest steps: - - name: Report the toolchain + - name: Install GCC 16 and CMake 4 run: | - uname -a || true - head -3 /etc/os-release || true - for tool in gcc g++ clang clang++ cmake ninja make git nix dev wine node python3 pkg-config apt-get sudo; do - printf '%s: ' "$tool" - command -v "$tool" || echo missing - done - g++ --version | head -1 || true - cmake --version | head -1 || true - apt-cache policy g++-16 gcc-16 2>/dev/null | head -8 || true + set -x + sudo apt-get update + sudo apt-get install -y software-properties-common wget gpg ninja-build + sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test + wget -qO- https://apt.kitware.com/keys/kitware-archive-latest.asc | \ + gpg --dearmor - | sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null + echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ noble main' | \ + sudo tee /etc/apt/sources.list.d/kitware.list >/dev/null + sudo apt-get update + apt-cache policy g++-16 gcc-16 cmake | head -24 || true + sudo apt-get install -y g++-16 cmake + g++-16 --version | head -1 + cmake --version | head -1