From 80d3299b51805b43cc8c5ce071cfafec9e20f1fa Mon Sep 17 00:00:00 2001 From: whaffman Date: Wed, 10 Sep 2025 18:08:56 +0200 Subject: [PATCH] Update clang-format workflow to use pre-built container and remove installation step --- .github/workflows/clang-format.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index 5938903..35eada9 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -8,6 +8,7 @@ on: jobs: clang-tools: runs-on: ubuntu-latest + container: silkeh/clang:latest # Pre-built container with clang tools permissions: contents: write # Needed to push changes back @@ -18,11 +19,6 @@ jobs: with: ref: ${{ github.head_ref }} # checkout the PR branch so we can push back - - name: Install clang tools - run: | - sudo apt update - sudo apt install -y clang-format clang-tidy - - name: Run clang-format and auto-fix run: | FILES=$(find . -name '*.c' -o -name '*.cpp' -o -name '*.h' -o -name '*.hpp')