Fix unused parameter warning #126
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clang Format Check | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
clang: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Clang | |
run: | | |
sudo apt-get install -y clang-format-13 | |
clang-format -i -fallback-style=none $(git ls-files src/ src-obsstudio/ | grep '[^/]\.[ch]') | |
- name: Check | |
# Build your program with the given configuration | |
run: | | |
dirty=$(git ls-files --modified) | |
set +x | |
if [[ $dirty ]]; then | |
git diff | |
echo "Error: File(s) are not properly formatted." | |
echo "$dirty" | |
exit 1 | |
fi |