diff --git a/.github/workflows/linter.yaml b/.github/workflows/linter.yaml index 5ce8cd256..b13c165c9 100644 --- a/.github/workflows/linter.yaml +++ b/.github/workflows/linter.yaml @@ -11,14 +11,15 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 - - name: Run clang-format + - name: Update APT package list + run: sudo apt-get update + - name: Download and install LLVM run: | - apt-get update - wget https://apt.llvm.org/llvm.sh sudo bash llvm.sh 20 - - sudo apt-get -y install clang-format-20 - + - name: Install clang-format + run: sudo apt-get -y install clang-format-20 + - name: Run clang-format + run: | SOURCES=$(find apps src tests \( -name "*.h" -or -name "*.cpp" \)) clang-format-20 --dry-run --Werror $SOURCES