C++ Lint #1
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: "C++ Lint" | ||
on: | ||
workflow_dispatch: | ||
workflow_call: | ||
env: | ||
jobs: | ||
lint: | ||
name: C++ linting | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install -y python3-setuptools python3-wheel | ||
python -m pip install meson | ||
- name: Cache lib dependencies | ||
uses: actions/cache@v4 | ||
with: | ||
path: .github/workflows/deps/install_dir | ||
key: ${{ env.OPENCV_GIT_TAG }}-${{ env.YAML_GIT_TAG }}-${{ env.ARGPARSE_GIT_TAG }} | ||
fail-on-cache-miss: true | ||
- name: Setup | ||
run: | | ||
meson setup build --prefer-static --pkg-config-path=$(find .github -name "pkgconfig") | ||
- name: Lint | ||
run: | | ||
ninja clang-tidy -C build |