Merge branch 'main' into sparse_matrix_construction_tests #651
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: OpenTurbine-CI | |
on: push | |
jobs: | |
clang-format: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Run clang-format | |
run: | | |
clang-format --version | |
find . -regex '.*\.\(cpp\|hpp\|c\|h\)' -exec clang-format-18 -i {} \; | |
- name: Check for formatting changes | |
run: | | |
if [[ `git status --porcelain` ]]; then | |
echo "Code is not formatted. Please run clang-format." | |
git diff | |
exit 1 | |
else | |
echo "Code is properly formatted." | |
fi | |