From a1541dfe102620df6878e47be08ef872a144d96b Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Wed, 16 Jul 2025 04:36:25 +0200 Subject: [PATCH] Install clang-format to /usr/bin for proper PATH precedence --- .github/workflows/format-check-new.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/format-check-new.yml b/.github/workflows/format-check-new.yml index 9a5f35c75..71ddd0bec 100644 --- a/.github/workflows/format-check-new.yml +++ b/.github/workflows/format-check-new.yml @@ -23,12 +23,13 @@ jobs: 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 - sudo chmod +x /usr/local/bin/clang-format + # Install clang-format binary to /usr/bin where it will be found first + sudo cp clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04/bin/clang-format /usr/bin/clang-format + sudo chmod +x /usr/bin/clang-format - # Verify version - /usr/local/bin/clang-format --version + # Verify version and location + which clang-format + clang-format --version - name: Install dotnet uses: actions/setup-dotnet@v3