Skip to content

build(deps): bump the github-actions group across 1 directory with 4 updates #343

build(deps): bump the github-actions group across 1 directory with 4 updates

build(deps): bump the github-actions group across 1 directory with 4 updates #343

Workflow file for this run

# Run cmakelint over all the repo's CMake files
name: cmakelint
on:
pull_request:
paths:
- '**.cmake'
- '**/CMakeLists.txt'
- '.github/workflows/cmakelint.yml'
permissions:
contents: read
jobs:
cmake-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 #v6.0.3
- name: Set up Python
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 #v6.2.0
- name: Set up cmakelint
run: |
python -m pip install --upgrade pip
python -m pip install cmakelint
- name: Lint all CMake files
run: |
FILES=$(find . -type f \( -name "CMakeLists.txt" -o -name "*.cmake" \))
if [ -z "$FILES" ]; then
echo "No CMake files found!"
exit 1
fi
echo "Linting the following files:"
echo "$FILES"
cmakelint $FILES