Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Check formatting

on:
pull_request:
paths:
- 'src/**.c'
- 'src/**.cpp'
- 'src/**.h'
- 'src/**.hpp'

jobs:
formatting:
name: "Check formatting"
runs-on: windows-2022
permissions:
contents: read
steps:
- name: Get AV
uses: actions/checkout@v5
- name: Check formatting with clang-format
run: >
clang-format --dry-run --Werror -style=file $(find src/ -type f \( -name '*.cpp' -o -name '*.h' -o -name '*.c' -o -name '*.hpp' \))
shell: bash
4 changes: 0 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ jobs:
steps:
- name: Get AV
uses: actions/checkout@v5
- name: Check formatting with clang-format
run: >
clang-format --dry-run --Werror -style=file $(find src/ -type f \( -name '*.cpp' -o -name '*.h' -o -name '*.c' -o -name '*.hpp' \))
shell: bash
- name: Obtain oggenc2.exe
run: >
curl https://www.rarewares.org/files/ogg/oggenc2.88-1.3.7-x64.zip --output oggenc.zip &&
Expand Down