Skip to content

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

[pre-commit.ci] pre-commit autoupdate

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

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/[email protected]
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/[email protected]