Integrating mpi-staging to cuda-staging branch #55
Workflow file for this run
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: cpp-linter | |
on: | |
pull_request: | |
branches: cuda-staging | |
paths: ['**.cu','**.cpp','**.c', '**.h', '**CMakeLists.txt'] | |
push: | |
branches: cuda-staging | |
paths: ['**.cu','**.cpp','**.c', '**.h', '**CMakeLists.txt'] | |
permissions: | |
contents: write | |
pull-requests: write | |
actions: write | |
jobs: | |
cpp-linter: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cpp-linter/cpp-linter-action@v2 | |
id: linter | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
style: 'file' # Use .clang-format config file. | |
tidy-checks: '-*' # disable clang-tidy checks. | |
version: 17 | |
thread-comments: true | |
format-review: true | |
- name: Run clang-format | |
if: steps.linter.outputs.clang-format-checks-failed > 0 | |
run: exit 1 |