From a42459717039b31809ad124d2bcba59cad65b987 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 16 Jul 2025 04:34:09 +0200 Subject: [PATCH] Fix libtinfo dependency for clang-format --- .github/workflows/format-check-new.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/format-check-new.yml b/.github/workflows/format-check-new.yml index a311c3a28..9a5f35c75 100644 --- a/.github/workflows/format-check-new.yml +++ b/.github/workflows/format-check-new.yml @@ -13,16 +13,22 @@ jobs: - name: Setup clang-format run: | + # Install libtinfo5 (required by the Ubuntu 18.04 binary) + # Create a symlink since Ubuntu 24.04 has libtinfo6 + sudo apt-get update + sudo apt-get install -y libtinfo6 + sudo ln -sf /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /usr/lib/x86_64-linux-gnu/libtinfo.so.5 + # Download clang-format 18.1.8 binary directly wget -q https://github.com/llvm/llvm-project/releases/download/llvmorg-18.1.8/clang%2Bllvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz tar -xf clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz + # Install only clang-format binary sudo cp clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04/bin/clang-format /usr/local/bin/clang-format - # Ensure it's first in PATH - export PATH=/usr/local/bin:$PATH + sudo chmod +x /usr/local/bin/clang-format + # Verify version - which clang-format - clang-format --version + /usr/local/bin/clang-format --version - name: Install dotnet uses: actions/setup-dotnet@v3