Skip to content

Commit

Permalink
ci: improve style check
Browse files Browse the repository at this point in the history
  • Loading branch information
futrime committed Jan 25, 2024
1 parent bfff01a commit 3eb24b4
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,13 @@ jobs:
bin/
check-style:
runs-on: ubuntu-latest
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v3
with:
node-version: 18

- run: |
npm install [email protected]
choco install llvm -y --version=17.0.6
- run: |
npx clang-format --dry-run --Werror $(find src/ -type f -name '*.cpp' -o -name '*.h')
Get-ChildItem src/ -Filter *.cpp -Recurse | ForEach-Object { clang-format -i -Werror $_.FullName }
Get-ChildItem src/ -Filter *.h -Recurse | ForEach-Object { clang-format -i -Werror $_.FullName }

0 comments on commit 3eb24b4

Please sign in to comment.