Skip to content

[pre-commit.ci] pre-commit autoupdate #268

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #268

Workflow file for this run

name: pre-commit
on:
pull_request:
push:
paths-ignore:
- 'docs/**'
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: '🐍 Setup python'
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: '📥 Load .env file'
if: hashFiles('.github/workflows/.env') != ''
uses: xom9ikk/dotenv@v2
with:
path: .github/workflows
- name: '${{ matrix.icon }} Setup CMake'
uses: jwlawson/actions-setup-cmake@v1.13
with:
cmake-version: '${{env.CMAKE_VERSION}}'
github-api-token: ${{ secrets.GITHUB_TOKEN }}
- name: 'Install packages'
run: sudo apt-get install cmake lcov clang-tidy cppcheck iwyu clang clang-format cppcheck
- name: 'Install packages with pip'
run: pip install --user cpplint
- name: '🔧 Configure'
run: cmake -S . -B ${{ env.CMAKE_BUILD_PREFIX }} -D CMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DBUILD_TESTS=${{ env.BUILD_TESTS }} -DBUILD_DOCS=${{ env.BUILD_DOCS }} -DBUILD_EXAMPLES=${{ env.BUILD_EXAMPLES }} -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
- uses: pre-commit/action@v3.0.0