ci: Migrate to alpine base image #19
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: "CMake Lint" | |
on: | |
push: | |
paths-ignore: | |
- 'README.md' | |
jobs: | |
lint: | |
name: "cmake lint" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt update -y | |
sudo apt -y --no-install-recommends install \ | |
python3-pip='22.*' | |
pip install cmakelint | |
- name: Execute cmakelint | |
run: find . \( \( -path './build' -o -path '*/.*' \) -prune \) -o | |
\( -type f -a -iname 'CMakeLists.txt' \) | |
-exec echo "Linting '{}'..." \; | |
-exec cmakelint --spaces=1 {} + |