Skip to content

Commit d99fb6d

Browse files
committed
Add github actions tests for unstable ABI
1 parent f16d130 commit d99fb6d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,24 @@ jobs:
144144
if: "!(runner.os == 'Windows' && (matrix.python == 3.8 || matrix.python == 3.9 || matrix.python == '3.10-dev'))"
145145
run: cmake --build build2 --target cpptest
146146

147+
# Third build - C++17 mode with unstable ABI
148+
- name: Configure (unstable ABI)
149+
run: >
150+
cmake -S . -B build3
151+
-DPYBIND11_WERROR=ON
152+
-DDOWNLOAD_CATCH=ON
153+
-DDOWNLOAD_EIGEN=ON
154+
-DCMAKE_CXX_STANDARD=17
155+
-DCMAKE_CXX_FLAGS=-DPYBIND11_INTERNALS_VERSION=10000000
156+
"-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
157+
${{ matrix.args }}
158+
159+
- name: Build (unstable ABI)
160+
run: cmake --build build3 -j 2
161+
162+
- name: Python tests (unstable ABI)
163+
run: cmake --build build3 --target pytest
164+
147165
- name: Interface test
148166
run: cmake --build build2 --target test_cmake_build
149167

0 commit comments

Comments
 (0)