mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-14 09:34:46 +00:00
224 lines
8.3 KiB
Diff
224 lines
8.3 KiB
Diff
--- ci.yml 2024-06-21 22:56:01.205982412 -0700
|
|
+++ ci_sh_def.yml 2024-06-21 22:57:45.189902320 -0700
|
|
@@ -1,4 +1,16 @@
|
|
-name: CI
|
|
+# PLEASE KEEP THIS GROUP OF FILES IN SYNC AT ALL TIMES:
|
|
+# ci.yml
|
|
+# ci_sh_def.yml
|
|
+# ci_sh_def.yml.patch
|
|
+# To import changes made to ci.yml *** ESPECIALLY AFTER `git merge master` ***:
|
|
+# patch -i ci_sh_def.yml.patch -o ci_sh_def.yml
|
|
+# To update the patch file after making changes to ci_sh.yml:
|
|
+# diff -u ci.yml ci_sh_def.yml > ci_sh_def.yml.patch
|
|
+# git commit -a -m 'Tracking ci.yml changes from master.'
|
|
+#
|
|
+# Thanks a lot to @rhaschke for PR #2930!
|
|
+
|
|
+name: "CI-SH-DEF"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
@@ -13,7 +25,7 @@
|
|
permissions: read-all
|
|
|
|
concurrency:
|
|
- group: test-sh-avl${{ github.ref }}
|
|
+ group: test-sh-def-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
@@ -126,6 +138,7 @@
|
|
-DDOWNLOAD_CATCH=ON
|
|
-DDOWNLOAD_EIGEN=ON
|
|
-DCMAKE_CXX_STANDARD=11
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT ${{runner.os == 'Windows' && '/GR /EHsc' || ''}}"
|
|
${{ matrix.args }}
|
|
|
|
- name: Build C++11
|
|
@@ -155,6 +168,7 @@
|
|
-DDOWNLOAD_CATCH=ON
|
|
-DDOWNLOAD_EIGEN=ON
|
|
-DCMAKE_CXX_STANDARD=17
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT ${{runner.os == 'Windows' && '/GR /EHsc' || ''}}"
|
|
${{ matrix.args }}
|
|
|
|
- name: Build
|
|
@@ -174,6 +188,7 @@
|
|
-DDOWNLOAD_CATCH=ON
|
|
-DDOWNLOAD_EIGEN=ON
|
|
-DCMAKE_CXX_STANDARD=17
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT ${{runner.os == 'Windows' && '/GR /EHsc' || ''}}"
|
|
-DPYBIND11_INTERNALS_VERSION=10000000
|
|
${{ matrix.args }}
|
|
|
|
@@ -217,6 +232,7 @@
|
|
-DDOWNLOAD_CATCH=ON
|
|
-DDOWNLOAD_EIGEN=ON
|
|
-DPython_ROOT_DIR=.venv
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
|
|
- name: Build C++11
|
|
run: cmake --build build -j2
|
|
@@ -290,6 +306,7 @@
|
|
-DDOWNLOAD_CATCH=ON
|
|
-DDOWNLOAD_EIGEN=ON
|
|
-DCMAKE_CXX_STANDARD=17
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
|
|
- name: Build
|
|
run: cmake --build build -j 2
|
|
@@ -358,6 +375,7 @@
|
|
-DPYBIND11_WERROR=ON
|
|
-DDOWNLOAD_CATCH=ON
|
|
-DCMAKE_CXX_STANDARD=${{ matrix.std }}
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
|
|
|
|
- name: Build
|
|
@@ -387,7 +405,7 @@
|
|
run: apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y cmake git python3-dev python3-pytest python3-numpy
|
|
|
|
- name: Configure
|
|
- run: cmake -S . -B build -DPYBIND11_CUDA_TESTS=ON -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON
|
|
+ run: cmake -S . -B build -DPYBIND11_CUDA_TESTS=ON -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
|
|
- name: Build
|
|
run: cmake --build build -j2 --verbose
|
|
@@ -475,7 +493,7 @@
|
|
cmake -S . -B build -DDOWNLOAD_CATCH=ON \
|
|
-DCMAKE_CXX_STANDARD=17 \
|
|
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)") \
|
|
- -DCMAKE_CXX_FLAGS="-Wc,--pending_instantiations=0" \
|
|
+ -DCMAKE_CXX_FLAGS="-Wc,--pending_instantiations=0 -DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT" \
|
|
-DPYBIND11_TEST_FILTER="test_smart_ptr.cpp"
|
|
|
|
- name: Build
|
|
@@ -529,6 +547,7 @@
|
|
-DPYBIND11_WERROR=ON
|
|
-DDOWNLOAD_CATCH=ON
|
|
-DCMAKE_CXX_STANDARD=${{ matrix.std }}
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
|
|
|
|
- name: Build
|
|
@@ -551,6 +570,7 @@
|
|
-DPYBIND11_WERROR=ON
|
|
-DDOWNLOAD_CATCH=ON
|
|
-DCMAKE_CXX_STANDARD=${{ matrix.std }}
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
|
|
"-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
|
|
|
|
@@ -600,6 +620,7 @@
|
|
-DDOWNLOAD_CATCH=ON \
|
|
-DDOWNLOAD_EIGEN=OFF \
|
|
-DCMAKE_CXX_STANDARD=11 \
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT" \
|
|
-DCMAKE_CXX_COMPILER=$(which icpc) \
|
|
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
|
|
|
|
@@ -632,6 +653,7 @@
|
|
-DDOWNLOAD_CATCH=ON \
|
|
-DDOWNLOAD_EIGEN=OFF \
|
|
-DCMAKE_CXX_STANDARD=17 \
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT" \
|
|
-DCMAKE_CXX_COMPILER=$(which icpc) \
|
|
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
|
|
|
|
@@ -703,6 +725,7 @@
|
|
-DDOWNLOAD_CATCH=ON
|
|
-DDOWNLOAD_EIGEN=ON
|
|
-DCMAKE_CXX_STANDARD=11
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
|
|
|
|
- name: Build
|
|
@@ -753,6 +776,7 @@
|
|
cmake ../pybind11-tests
|
|
-DDOWNLOAD_CATCH=ON
|
|
-DPYBIND11_WERROR=ON
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
|
|
working-directory: /build-tests
|
|
|
|
@@ -856,6 +880,7 @@
|
|
-DPYBIND11_WERROR=ON
|
|
-DDOWNLOAD_CATCH=ON
|
|
-DDOWNLOAD_EIGEN=ON
|
|
+ -DCMAKE_CXX_FLAGS="/GR /EHsc /DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
${{ matrix.args }}
|
|
- name: Build C++11
|
|
run: cmake --build build -j 2
|
|
@@ -910,6 +935,7 @@
|
|
-DPYBIND11_WERROR=ON
|
|
-DDOWNLOAD_CATCH=ON
|
|
-DDOWNLOAD_EIGEN=ON
|
|
+ -DCMAKE_CXX_FLAGS="/GR /EHsc /DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
${{ matrix.args }}
|
|
- name: Build C++11
|
|
run: cmake --build build --config Debug -j 2
|
|
@@ -952,6 +978,7 @@
|
|
-DDOWNLOAD_CATCH=ON
|
|
-DDOWNLOAD_EIGEN=ON
|
|
-DCMAKE_CXX_STANDARD=20
|
|
+ -DCMAKE_CXX_FLAGS="/GR /EHsc /DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
|
|
- name: Build C++20
|
|
run: cmake --build build -j 2
|
|
@@ -972,6 +999,7 @@
|
|
-DDOWNLOAD_CATCH=ON
|
|
-DDOWNLOAD_EIGEN=ON
|
|
-DCMAKE_CXX_STANDARD=20
|
|
+ -DCMAKE_CXX_FLAGS="/GR /EHsc /DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
"-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
|
|
|
|
- name: Build C++20 - Exercise cmake -DPYBIND11_TEST_OVERRIDE
|
|
@@ -1024,6 +1052,7 @@
|
|
run: >-
|
|
cmake -G "MinGW Makefiles" -DCMAKE_CXX_STANDARD=11 -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON
|
|
-DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
-S . -B build
|
|
|
|
- name: Build C++11
|
|
@@ -1045,6 +1074,7 @@
|
|
run: >-
|
|
cmake -G "MinGW Makefiles" -DCMAKE_CXX_STANDARD=14 -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON
|
|
-DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
-S . -B build2
|
|
|
|
- name: Build C++14
|
|
@@ -1066,6 +1096,7 @@
|
|
run: >-
|
|
cmake -G "MinGW Makefiles" -DCMAKE_CXX_STANDARD=17 -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON
|
|
-DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
-S . -B build3
|
|
|
|
- name: Build C++17
|
|
@@ -1133,6 +1164,7 @@
|
|
-DDOWNLOAD_EIGEN=ON
|
|
-DCMAKE_CXX_COMPILER=clang++
|
|
-DCMAKE_CXX_STANDARD=17
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
|
|
- name: Build
|
|
run: cmake --build . -j 2
|
|
@@ -1198,6 +1230,7 @@
|
|
-DDOWNLOAD_EIGEN=ON
|
|
-DCMAKE_CXX_COMPILER=clang++
|
|
-DCMAKE_CXX_STANDARD=17
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
|
|
|
|
- name: Build
|
|
@@ -1221,6 +1254,7 @@
|
|
-DDOWNLOAD_EIGEN=ON
|
|
-DCMAKE_CXX_COMPILER=clang++
|
|
-DCMAKE_CXX_STANDARD=17
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
|
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
|
|
"-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
|
|
|