diff --git a/.github/workflows/test-clang-docker.yml b/.github/workflows/test-clang-docker.yml deleted file mode 100644 index c9ffae40d..000000000 --- a/.github/workflows/test-clang-docker.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Test Clang Format Docker - -on: - push: - branches: [test-clang-format-install] - workflow_dispatch: - -jobs: - test-docker: - runs-on: ubuntu-24.04 - steps: - - uses: actions/checkout@v3 - - - name: Test clang-format via Docker - run: | - echo "=== Using silkeh/clang Docker image ===" - docker run --rm -v $PWD:/workspace silkeh/clang:18 clang-format --version - - echo "" - echo "=== Test formatting ===" - echo 'class Test { Test() {}; };' | docker run --rm -i silkeh/clang:18 clang-format - - echo "" - echo "=== Test with .clang-format ===" - echo 'class Test { Test() {}; };' | docker run --rm -i -v $PWD/formatters:/formatters silkeh/clang:18 clang-format --style=file:/formatters/.clang-format \ No newline at end of file diff --git a/.github/workflows/test-clang-install.yml b/.github/workflows/test-clang-install.yml deleted file mode 100644 index 9cbdd49b9..000000000 --- a/.github/workflows/test-clang-install.yml +++ /dev/null @@ -1,79 +0,0 @@ -name: Test Clang Format Install - -on: - push: - branches: [test-clang-format-install] - workflow_dispatch: - -jobs: - test-ubuntu-2204: - runs-on: ubuntu-22.04 - steps: - - name: Install clang-format 18.1.8 - run: | - echo "=== System info ===" - lsb_release -a - echo "" - echo "=== Available libtinfo packages ===" - apt-cache search libtinfo | grep -E "^libtinfo[0-9]* " || true - echo "" - echo "=== Installing dependencies ===" - sudo apt-get update - # Try libtinfo6 first (newer), fall back to libtinfo5 - sudo apt-get install -y libtinfo6 || sudo apt-get install -y libtinfo5 - echo "" - echo "=== Downloading clang-format 18.1.8 ===" - wget 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 - echo "" - echo "=== Extracting ===" - tar -xf clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz - echo "" - echo "=== Testing clang-format ===" - # First check what libraries it needs - ldd ./clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04/bin/clang-format || true - echo "" - # Try to run it - ./clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04/bin/clang-format --version || { - echo "Failed to run, trying with symlink..." - sudo ln -sf /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /usr/lib/x86_64-linux-gnu/libtinfo.so.5 - ./clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04/bin/clang-format --version - } - echo "" - echo "=== Testing formatting ===" - echo 'class Test { Test() {}; };' | ./clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04/bin/clang-format - - test-ubuntu-2404: - runs-on: ubuntu-24.04 - steps: - - name: Install clang-format 18.1.8 - run: | - echo "=== System info ===" - lsb_release -a - echo "" - echo "=== Available libtinfo packages ===" - apt-cache search libtinfo | grep -E "^libtinfo[0-9]* " || true - echo "" - echo "=== Installing dependencies ===" - sudo apt-get update - # Try libtinfo6 first (newer), fall back to libtinfo5 - sudo apt-get install -y libtinfo6 || sudo apt-get install -y libtinfo5 - echo "" - echo "=== Downloading clang-format 18.1.8 ===" - wget 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 - echo "" - echo "=== Extracting ===" - tar -xf clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04.tar.xz - echo "" - echo "=== Testing clang-format ===" - # First check what libraries it needs - ldd ./clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04/bin/clang-format || true - echo "" - # Try to run it - ./clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04/bin/clang-format --version || { - echo "Failed to run, trying with symlink..." - sudo ln -sf /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /usr/lib/x86_64-linux-gnu/libtinfo.so.5 - ./clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04/bin/clang-format --version - } - echo "" - echo "=== Testing formatting ===" - echo 'class Test { Test() {}; };' | ./clang+llvm-18.1.8-x86_64-linux-gnu-ubuntu-18.04/bin/clang-format \ No newline at end of file