mirror of
https://github.com/pybind/pybind11.git
synced 2026-04-19 22:39:09 +00:00
chore: bump maximum clang tested to 20 (#5692)
This commit is contained in:
16
.github/workflows/format.yml
vendored
16
.github/workflows/format.yml
vendored
@@ -38,23 +38,17 @@ jobs:
|
||||
# in .github/CONTRIBUTING.md and update as needed.
|
||||
name: Clang-Tidy
|
||||
runs-on: ubuntu-latest
|
||||
container: silkeh/clang:18-bookworm
|
||||
container: silkeh/clang:20
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install requirements
|
||||
run: apt-get update && apt-get install -y git python3-dev python3-pytest
|
||||
run: apt-get update && apt-get install -y git python3-dev python3-pytest ninja-build
|
||||
|
||||
- name: Configure
|
||||
run: >
|
||||
cmake -S . -B build
|
||||
-DCMAKE_CXX_CLANG_TIDY="$(which clang-tidy);--use-color;--warnings-as-errors=*"
|
||||
-DDOWNLOAD_EIGEN=ON
|
||||
-DDOWNLOAD_CATCH=ON
|
||||
-DCMAKE_CXX_STANDARD=17
|
||||
|
||||
run: cmake --preset tidy
|
||||
- name: Build
|
||||
run: cmake --build build -j 2 -- --keep-going
|
||||
run: cmake --build --preset tidy
|
||||
|
||||
- name: Embedded
|
||||
run: cmake --build build -t cpptest -j 2 -- --keep-going
|
||||
run: cmake --build --preset tidy -t cpptest
|
||||
|
||||
Reference in New Issue
Block a user