Skip to content

Commit d75b353

Browse files
authored
CI: MSVC Debug Build (#3784)
1 parent 2dd5254 commit d75b353

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

.github/workflows/ci.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,60 @@ jobs:
755755
- name: Python tests
756756
run: cmake --build build -t pytest
757757

758+
win32-debug:
759+
strategy:
760+
fail-fast: false
761+
matrix:
762+
python:
763+
- 3.8
764+
- 3.9
765+
766+
include:
767+
- python: 3.9
768+
args: -DCMAKE_CXX_STANDARD=20
769+
- python: 3.8
770+
args: -DCMAKE_CXX_STANDARD=17
771+
772+
name: "🐍 ${{ matrix.python }} • MSVC 2019 (Debug) • x86 ${{ matrix.args }}"
773+
runs-on: windows-2019
774+
775+
steps:
776+
- uses: actions/checkout@v2
777+
778+
- name: Setup Python ${{ matrix.python }}
779+
uses: actions/setup-python@v2
780+
with:
781+
python-version: ${{ matrix.python }}
782+
architecture: x86
783+
784+
- name: Update CMake
785+
uses: jwlawson/actions-setup-cmake@v1.12
786+
787+
- name: Prepare MSVC
788+
uses: ilammy/msvc-dev-cmd@v1.10.0
789+
with:
790+
arch: x86
791+
792+
- name: Prepare env
793+
run: |
794+
python -m pip install -r tests/requirements.txt
795+
796+
# First build - C++11 mode and inplace
797+
- name: Configure ${{ matrix.args }}
798+
run: >
799+
cmake -S . -B build
800+
-G "Visual Studio 16 2019" -A Win32
801+
-DCMAKE_BUILD_TYPE=Debug
802+
-DPYBIND11_WERROR=ON
803+
-DDOWNLOAD_CATCH=ON
804+
-DDOWNLOAD_EIGEN=ON
805+
${{ matrix.args }}
806+
- name: Build C++11
807+
run: cmake --build build --config Debug -j 2
808+
809+
- name: Python tests
810+
run: cmake --build build --config Debug -t pytest
811+
758812
win32-msvc2017:
759813
name: "🐍 ${{ matrix.python }} • MSVC 2017 • x64"
760814
runs-on: windows-2016

0 commit comments

Comments
 (0)