Skip to content

Commit 4415647

Browse files
rwgkhenryiii
andauthored
Adding MSVC 2022 C++20 GitHub Action (#3732)
* Trying another way of adding windows-2022 C++20 * ci: try merging 2019 & 2022 * Revert "ci: try merging 2019 & 2022" This reverts commit b158a1b. Co-authored-by: Henry Schreiner <[email protected]>
1 parent 522c59c commit 4415647

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/ci.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -852,6 +852,51 @@ jobs:
852852
- name: Run all checks
853853
run: cmake --build build -t check
854854

855+
windows-2022:
856+
strategy:
857+
fail-fast: false
858+
matrix:
859+
python:
860+
- 3.9
861+
862+
name: "🐍 ${{ matrix.python }} • MSVC 2022 C++20 • x64"
863+
runs-on: windows-2022
864+
865+
steps:
866+
- uses: actions/checkout@v2
867+
868+
- name: Setup Python ${{ matrix.python }}
869+
uses: actions/setup-python@v2
870+
with:
871+
python-version: ${{ matrix.python }}
872+
873+
- name: Prepare env
874+
run: |
875+
python3 -m pip install -r tests/requirements.txt
876+
877+
- name: Update CMake
878+
uses: jwlawson/[email protected]
879+
880+
- name: Configure C++20
881+
run: >
882+
cmake -S . -B build
883+
-DPYBIND11_WERROR=ON
884+
-DDOWNLOAD_CATCH=ON
885+
-DDOWNLOAD_EIGEN=OFF
886+
-DCMAKE_CXX_STANDARD=20
887+
888+
- name: Build C++20
889+
run: cmake --build build -j 2
890+
891+
- name: Python tests
892+
run: cmake --build build --target pytest
893+
894+
- name: C++20 tests
895+
run: cmake --build build --target cpptest -j 2
896+
897+
- name: Interface test C++20
898+
run: cmake --build build --target test_cmake_build
899+
855900
mingw:
856901
name: "🐍 3 • windows-latest • ${{ matrix.sys }}"
857902
runs-on: windows-latest

0 commit comments

Comments
 (0)