Skip to content

Commit f18b3e9

Browse files
committed
Add windows_clang to ci.yml (previously tested under PRs pybind#4321, pybind#4319)
1 parent ee2b522 commit f18b3e9

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

Diff for: .github/workflows/ci.yml

+65
Original file line numberDiff line numberDiff line change
@@ -967,3 +967,68 @@ jobs:
967967

968968
- name: Interface test C++17
969969
run: PYTHONHOME=/${{matrix.sys}} PYTHONPATH=/${{matrix.sys}} cmake --build build3 --target test_cmake_build
970+
971+
windows_clang:
972+
973+
strategy:
974+
matrix:
975+
os: [windows-latest]
976+
python: ['3.10']
977+
978+
runs-on: "${{ matrix.os }}"
979+
980+
name: "🐍 ${{ matrix.python }} • ${{ matrix.os }} • clang-latest"
981+
982+
steps:
983+
- name: Checkout
984+
uses: actions/checkout@v3
985+
986+
- name: Set up Clang
987+
uses: egor-tensin/setup-clang@v1
988+
989+
- name: Setup Python ${{ matrix.python }}
990+
uses: actions/setup-python@v4
991+
with:
992+
python-version: ${{ matrix.python }}
993+
994+
- name: Update CMake
995+
uses: jwlawson/actions-setup-cmake@v1.13
996+
997+
- name: Install ninja-build tool
998+
uses: seanmiddleditch/gha-setup-ninja@v3
999+
1000+
- name: Prepare env
1001+
run: python -m pip install -r tests/requirements.txt
1002+
1003+
- name: Show Clang++ version
1004+
run: clang++ --version
1005+
1006+
- name: Show CMake version
1007+
run: cmake --version
1008+
1009+
# TODO: WERROR=ON
1010+
- name: Configure Clang
1011+
run: >
1012+
cmake -G Ninja -S . -B .
1013+
-DCMAKE_VERBOSE_MAKEFILE=ON
1014+
-DPYBIND11_WERROR=OFF
1015+
-DPYBIND11_SIMPLE_GIL_MANAGEMENT=OFF
1016+
-DDOWNLOAD_CATCH=ON
1017+
-DDOWNLOAD_EIGEN=ON
1018+
-DCMAKE_CXX_COMPILER=clang++
1019+
-DCMAKE_CXX_STANDARD=17
1020+
1021+
- name: Build Clang
1022+
run: cmake --build . -j 2
1023+
1024+
- name: Python tests Clang
1025+
run: cmake --build . --target pytest -j 2
1026+
1027+
- name: C++ tests
1028+
run: cmake --build . --target cpptest -j 2
1029+
1030+
- name: Interface test Clang
1031+
run: cmake --build . --target test_cmake_build -j 2
1032+
1033+
- name: Clean directory
1034+
run: git clean -fdx

0 commit comments

Comments
 (0)