From af7b78f8aefa26d591ea833a5bd6b3ddaaa7ec27 Mon Sep 17 00:00:00 2001 From: cristian64 Date: Fri, 12 Jul 2024 22:09:31 +0100 Subject: [PATCH] Upgrade Clang-Format check in GitHub Action. The previous GitHub Action (`RafikFarhad/clang-format-github-action`) was not handling deeply nested files correctly: formatting was not enforced in a second directory level or deeper. A more popular action (`jidicula/clang-format-action`) is now used, which enables Clang-Format 18. --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 92555ca..2084b4e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,14 +10,14 @@ on: jobs: clang-format-check: - runs-on: ubuntu-22.04 + runs-on: ubuntu-24.04 name: Clang-Format Check steps: - uses: actions/checkout@v4 - - uses: RafikFarhad/clang-format-github-action@v4 + - uses: jidicula/clang-format-action@v4.13.0 with: - style: "file" - sources: "Source/**/*.h,Source/**/*.cpp" + clang-format-version: '18' + check-path: Source build-windows: runs-on: windows-latest