Skip to content

Commit b158a1b

Browse files
committed
ci: try merging 2019 & 2022
1 parent 4dcb631 commit b158a1b

File tree

1 file changed

+9
-46
lines changed

1 file changed

+9
-46
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -709,15 +709,22 @@ jobs:
709709
- 3.7
710710
- 3.8
711711
- 3.9
712+
year:
713+
- 2019
712714

713715
include:
714716
- python: 3.9
717+
year: 2019
715718
args: -DCMAKE_CXX_STANDARD=20 -DDOWNLOAD_EIGEN=OFF
716719
- python: 3.8
720+
year: 2019
717721
args: -DCMAKE_CXX_STANDARD=17
722+
- python: 3.9
723+
year: 2022
724+
args: -DCMAKE_CXX_STANDARD=20 -DDOWNLOAD_EIGEN=OFF
718725

719-
name: "🐍 ${{ matrix.python }} • MSVC 2019 • x86 ${{ matrix.args }}"
720-
runs-on: windows-latest
726+
name: "🐍 ${{ matrix.python }} • MSVC ${{ matrix.year }} • x86 ${{ matrix.args }}"
727+
runs-on: windows-${{ matrix.year }}
721728

722729
steps:
723730
- uses: actions/checkout@v2
@@ -852,50 +859,6 @@ jobs:
852859
- name: Run all checks
853860
run: cmake --build build -t check
854861

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
899862

900863
mingw:
901864
name: "🐍 3 • windows-latest • ${{ matrix.sys }}"

0 commit comments

Comments
 (0)