Skip to content

Modeler 4.6: system import [ANT-2207] #2006

Modeler 4.6: system import [ANT-2207]

Modeler 4.6: system import [ANT-2207] #2006

Workflow file for this run

name: Check cpp formatting using clang 18.1.3
on:
pull_request:
jobs:
build:
name: clang-format
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Print version
run: clang-format --version
- name: clang-format
run: cd src && ./format-code.sh
- name: git diff
run: |
DIFF=`git status --porcelain`
if [[ $DIFF ]]; then
echo "The following files are not well formatted, please make sure to use clang-format 18.1.3"
echo "$DIFF"
exit 1
else
echo "Code is well formatted, congrats !"
fi