Joss paper #10
This file contains hidden or 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
# Copyright (C) The DDC development team, see COPYRIGHT.md file | |
# | |
# SPDX-License-Identifier: MIT | |
--- | |
name: CMake checks | |
# yamllint disable-line rule:truthy | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/cmake-checks.yaml' | |
- 'CMakeLists.txt' | |
- '**/CMakeLists.txt' | |
- '**.cmake' | |
- '**.cmake.in' | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/cmake-checks.yaml' | |
- 'CMakeLists.txt' | |
- '**/CMakeLists.txt' | |
- '**.cmake' | |
- '**.cmake.in' | |
workflow_dispatch: | |
jobs: | |
cmake-format: | |
name: CMake format check using gersemi | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Install gersemi | |
run: pipx install gersemi~=0.19 | |
- name: Run gersemi | |
run: | | |
gersemi --check $(git ls-files '*.cmake' ':!cmake/DDCCheckRequiredKokkosOptions.cmake' ':!cmake/FindLAPACKE.cmake') | |
gersemi --check $(git ls-files 'CMakeLists.txt' '*/CMakeLists.txt') |