remove bindings to silent warnings #746
This file contains hidden or 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: [ master ] | |
| paths-ignore: | |
| - '**.md' | |
| - 'docs/**' | |
| workflow_dispatch: | |
| jobs: | |
| clang-format: | |
| if: github.repository == 'MrNeRF/LichtFeld-Studio' | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.PAT_TOKEN }} | |
| - name: Install clang-format | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y clang-format | |
| - name: Print clang-format version | |
| run: clang-format --version | |
| - name: Run clang-format | |
| run: | | |
| find . -regex '.*\.\(cpp\|hpp\|cc\|c\|h\|cu\|cuh\)' \ | |
| -exec clang-format -i {} + | |
| - name: Commit and push changes | |
| run: | | |
| if [[ -n "$(git status --porcelain)" ]]; then | |
| git config user.name "github-actions[bot]" | |
| git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git remote set-url origin https://x-access-token:${{ secrets.PAT_TOKEN }}@github.com/${{ github.repository }} | |
| git add . | |
| git commit -m "style: apply clang-format" | |
| git push | |
| else | |
| echo "No formatting changes needed." | |
| fi |