Skip to content

Commit

Permalink
Upgrade Clang-Format check in GitHub Action.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cristian64 committed Jul 12, 2024
1 parent 277ff8d commit af7b78f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit af7b78f

Please sign in to comment.