Skip to content

Bump actions/checkout from 5.0.0 to 6.0.1 (#986) #5

Bump actions/checkout from 5.0.0 to 6.0.1 (#986)

Bump actions/checkout from 5.0.0 to 6.0.1 (#986) #5

Workflow file for this run

# 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:
permissions:
contents: read
jobs:
cmake-format:
name: CMake format check using gersemi
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- name: Install gersemi
run: pipx install gersemi~=0.23
- 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')