ci: probe GCC 16 and CMake 4 installation
This commit is contained in:
1 parent
05c4aa62b3
commit
d420732016
1 file changed
+15
-11
+15
-11
@@ -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
|
||||
Reference in new issue
Block a user