Skip to content

ci: add clang-tidy check #1

ci: add clang-tidy check

ci: add clang-tidy check #1

Workflow file for this run

# Copyright 2025 Yunze Xu

Check failure on line 1 in .github/workflows/lint.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/lint.yaml

Invalid workflow file

`pull_requests` is not a valid event name
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Lint
on:
pull_requests:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint check
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: Build
run: |
cmake -B build
cmake --build build -j4
- name: Tidy
run: |
apt install -y clang-tidy
run-clang-tidy -p build -j4 -header-filter='.*'