mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 05:05:11 +00:00
ci: try merging 2019 & 2022
This commit is contained in:
parent
4dcb63190b
commit
b158a1b79f
55
.github/workflows/ci.yml
vendored
55
.github/workflows/ci.yml
vendored
@ -709,15 +709,22 @@ jobs:
|
|||||||
- 3.7
|
- 3.7
|
||||||
- 3.8
|
- 3.8
|
||||||
- 3.9
|
- 3.9
|
||||||
|
year:
|
||||||
|
- 2019
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- python: 3.9
|
- python: 3.9
|
||||||
|
year: 2019
|
||||||
args: -DCMAKE_CXX_STANDARD=20 -DDOWNLOAD_EIGEN=OFF
|
args: -DCMAKE_CXX_STANDARD=20 -DDOWNLOAD_EIGEN=OFF
|
||||||
- python: 3.8
|
- python: 3.8
|
||||||
|
year: 2019
|
||||||
args: -DCMAKE_CXX_STANDARD=17
|
args: -DCMAKE_CXX_STANDARD=17
|
||||||
|
- python: 3.9
|
||||||
|
year: 2022
|
||||||
|
args: -DCMAKE_CXX_STANDARD=20 -DDOWNLOAD_EIGEN=OFF
|
||||||
|
|
||||||
name: "🐍 ${{ matrix.python }} • MSVC 2019 • x86 ${{ matrix.args }}"
|
name: "🐍 ${{ matrix.python }} • MSVC ${{ matrix.year }} • x86 ${{ matrix.args }}"
|
||||||
runs-on: windows-latest
|
runs-on: windows-${{ matrix.year }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@ -852,50 +859,6 @@ jobs:
|
|||||||
- name: Run all checks
|
- name: Run all checks
|
||||||
run: cmake --build build -t check
|
run: cmake --build build -t check
|
||||||
|
|
||||||
windows-2022:
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
python:
|
|
||||||
- 3.9
|
|
||||||
|
|
||||||
name: "🐍 ${{ matrix.python }} • MSVC 2022 C++20 • x64"
|
|
||||||
runs-on: windows-2022
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Setup Python ${{ matrix.python }}
|
|
||||||
uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: ${{ matrix.python }}
|
|
||||||
|
|
||||||
- name: Prepare env
|
|
||||||
run: |
|
|
||||||
python3 -m pip install -r tests/requirements.txt
|
|
||||||
|
|
||||||
- name: Update CMake
|
|
||||||
uses: jwlawson/actions-setup-cmake@v1.12
|
|
||||||
|
|
||||||
- name: Configure C++20
|
|
||||||
run: >
|
|
||||||
cmake -S . -B build
|
|
||||||
-DPYBIND11_WERROR=ON
|
|
||||||
-DDOWNLOAD_CATCH=ON
|
|
||||||
-DDOWNLOAD_EIGEN=OFF
|
|
||||||
-DCMAKE_CXX_STANDARD=20
|
|
||||||
|
|
||||||
- name: Build C++20
|
|
||||||
run: cmake --build build -j 2
|
|
||||||
|
|
||||||
- name: Python tests
|
|
||||||
run: cmake --build build --target pytest
|
|
||||||
|
|
||||||
- name: C++20 tests
|
|
||||||
run: cmake --build build --target cpptest -j 2
|
|
||||||
|
|
||||||
- name: Interface test C++20
|
|
||||||
run: cmake --build build --target test_cmake_build
|
|
||||||
|
|
||||||
mingw:
|
mingw:
|
||||||
name: "🐍 3 • windows-latest • ${{ matrix.sys }}"
|
name: "🐍 3 • windows-latest • ${{ matrix.sys }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user