Merge pull request #2131 from ericniebler/fix-reference-docs #828
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
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| clang-format: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: silkeh/clang:21@sha256:1901d77a39a463f27463f0b0c69441ed5c8ad18cbcf33ccf37283c27e807739f | |
| permissions: | |
| contents: read | |
| steps: | |
| - run: apt update && apt --yes --no-install-recommends install git | |
| - uses: actions/checkout@v6 | |
| - run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| - shell: bash | |
| run: | | |
| clang-format-21 --version | |
| git ls-files '*.[ch]' '*.[ch]pp' '*.cu' '*.cuh' | xargs clang-format-21 --dry-run --Werror |