Skip to content

Commit

Permalink
Add a cmake formatting tool in the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tpadioleau committed Oct 29, 2024
1 parent 575480e commit c68ece0
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,20 @@ jobs:
if: always()
uses: fsfe/reuse-action@v4

cmake-format:
runs-on: ubuntu-latest
steps:
- name: Install gersemi
run: |
apt-get --yes update &&apt-get --yes install python3-pip python3-venv
python3 -m venv ./gersemi
. ./gersemi/bin/activate
python3 -m pip install gersemi
- name: Run gersemi
run:
gersemi --line-length 100 --indent 4 --check cmake/DDCVendorConfiguration.cmake
find CMakeLists.txt tests/ examples/ benchmarks/ -name 'CMakeLists.txt' -exec gersemi --definitions $PWD/cmake --line-length 100 --indent 4 --check '{}' '+'

id_repo:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit c68ece0

Please sign in to comment.