Skip to content

Commit

Permalink
CI: MSVC Debug Build
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Mar 7, 2022
1 parent 2dd5254 commit d654a7b
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,60 @@ jobs:
- name: Python tests
run: cmake --build build -t pytest

win32-debug:
strategy:
fail-fast: false
matrix:
python:
- 3.9
- 3.10

include:
- python: 3.10
args: -DCMAKE_CXX_STANDARD=20
- python: 3.9
args: -DCMAKE_CXX_STANDARD=17

name: "🐍 ${{ matrix.python }} • MSVC 2019 (Debug) • x86 ${{ matrix.args }}"
runs-on: windows-2019

steps:
- uses: actions/checkout@v2

- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: x86

- name: Update CMake
uses: jwlawson/actions-setup-cmake@v1.12

- name: Prepare MSVC
uses: ilammy/msvc-dev-cmd@v1.10.0
with:
arch: x86

- name: Prepare env
run: |
python -m pip install -r tests/requirements.txt
# First build - C++11 mode and inplace
- name: Configure ${{ matrix.args }}
run: >
cmake -S . -B build
-G "Visual Studio 16 2019" -A Win32
-DCMAKE_BUILD_TYPE=Debug
-DPYBIND11_WERROR=ON
-DDOWNLOAD_CATCH=ON
-DDOWNLOAD_EIGEN=ON
${{ matrix.args }}
- name: Build C++11
run: cmake --build build --config Debug -j 2

- name: Python tests
run: cmake --build build --config Debug -t pytest

win32-msvc2017:
name: "🐍 ${{ matrix.python }} • MSVC 2017 • x64"
runs-on: windows-2016
Expand Down

0 comments on commit d654a7b

Please sign in to comment.