Skip to content

Merge pull request #1853 from IntelPython/dependabot/github_actions/a… #4894

Merge pull request #1853 from IntelPython/dependabot/github_actions/a…

Merge pull request #1853 from IntelPython/dependabot/github_actions/a… #4894

# This is a workflow to format C/C++ sources with clang-format
name: C++ Code Style
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
pull_request:
push:
branches: [master]
permissions: read-all
jobs:
formatting-check:
name: clang-format
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4.2.0
- name: Run clang-format style check for C/C++ programs.
uses: jidicula/clang-format-action@v4.13.0
with:
clang-format-version: '18'
check-path: 'libsyclinterface'
- name: Run clang-format style check for api headers.
uses: jidicula/clang-format-action@v4.13.0
with:
clang-format-version: '18'
check-path: 'dpctl/apis'
- name: Run clang-format style check for libtensor/source.
uses: jidicula/clang-format-action@v4.13.0
with:
clang-format-version: '18'
check-path: 'dpctl/tensor/libtensor/source'
- name: Run clang-format style check for libtensor/include.
uses: jidicula/clang-format-action@v4.13.0
with:
clang-format-version: '18'
check-path: 'dpctl/tensor/libtensor/include'