Remove test workflows

This commit is contained in:
Mario Zechner 2025-07-16 05:06:30 +02:00
parent c79031cc75
commit 205cae2373
2 changed files with 0 additions and 104 deletions

View File

@ -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

View File

@ -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