forked from pybind/pybind11
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added block transferred from PR pybind#4321
- Loading branch information
Ralf W. Grosse-Kunstleve
committed
Nov 10, 2022
1 parent
6f1ddb2
commit a1175ed
Showing
1 changed file
with
65 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -967,3 +967,68 @@ jobs: | |
|
||
- name: Interface test C++17 | ||
run: PYTHONHOME=/${{matrix.sys}} PYTHONPATH=/${{matrix.sys}} cmake --build build3 --target test_cmake_build | ||
|
||
WindowsClang: | ||
|
||
strategy: | ||
matrix: | ||
os: [windows-latest] | ||
python: ['3.10'] | ||
|
||
runs-on: "${{ matrix.os }}" | ||
|
||
name: "🐍 ${{ matrix.python }} • ${{ matrix.os }}" | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Clang | ||
uses: egor-tensin/setup-clang@v1 | ||
|
||
- name: Setup Python ${{ matrix.python }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
- name: Update CMake | ||
uses: jwlawson/[email protected] | ||
|
||
- name: Install ninja-build tool | ||
uses: seanmiddleditch/gha-setup-ninja@v3 | ||
|
||
- name: Prepare env | ||
run: python -m pip install -r tests/requirements.txt | ||
|
||
- name: Show Clang++ version | ||
run: clang++ --version | ||
|
||
- name: Show CMake version | ||
run: cmake --version | ||
|
||
# TODO: WERROR=ON | ||
- name: Configure Clang | ||
run: > | ||
cmake -G Ninja -S . -B . | ||
-DCMAKE_VERBOSE_MAKEFILE=ON | ||
-DPYBIND11_WERROR=OFF | ||
-DPYBIND11_SIMPLE_GIL_MANAGEMENT=OFF | ||
-DDOWNLOAD_CATCH=ON | ||
-DDOWNLOAD_EIGEN=ON | ||
-DCMAKE_CXX_COMPILER=clang++ | ||
-DCMAKE_CXX_STANDARD=17 | ||
- name: Build Clang | ||
run: cmake --build . -j 2 | ||
|
||
- name: Python tests Clang | ||
run: cmake --build . --target pytest -j 2 | ||
|
||
- name: C++ tests | ||
run: cmake --build . --target cpptest -j 2 | ||
|
||
- name: Interface test Clang | ||
run: cmake --build . --target test_cmake_build -j 2 | ||
|
||
- name: Clean directory | ||
run: git clean -fdx |