Skip to content

Change cmake submodule macros #79

Change cmake submodule macros

Change cmake submodule macros #79

name: clang-format Check
on: [push, pull_request]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Project Name
run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_ENV
- name: Run clang-format style check on implementation files.
uses: jidicula/clang-format-action@v4.11.0
with:
clang-format-version: '16'
check-path: 'src'
- name: Run clang-format style check on header files.
uses: jidicula/clang-format-action@v4.11.0
with:
clang-format-version: '16'
check-path: 'include/${{ env.REPOSITORY_NAME }}'
- name: Run clang-format style check on test files.
uses: jidicula/clang-format-action@v4.11.0
with:
clang-format-version: '16'
check-path: 'test'