mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-23 13:45:10 +00:00
134 lines
5.0 KiB
Diff
134 lines
5.0 KiB
Diff
|
--- ci.yml 2021-04-20 13:41:16.539965452 -0700
|
||
|
+++ ci_sh_def.yml 2021-04-20 13:44:02.766796637 -0700
|
||
|
@@ -1,4 +1,15 @@
|
||
|
-name: CI-SH-AVL
|
||
|
+# 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
|
||
|
+#
|
||
|
+# Thanks a lot to @rhaschke for PR #2930!
|
||
|
+
|
||
|
+name: "CI-SH-DEF"
|
||
|
|
||
|
on:
|
||
|
workflow_dispatch:
|
||
|
@@ -101,6 +112,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
|
||
|
@@ -128,6 +140,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 }}
|
||
|
${{ matrix.args2 }}
|
||
|
|
||
|
@@ -285,6 +298,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
|
||
|
@@ -314,7 +328,8 @@
|
||
|
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
|
||
|
@@ -394,7 +409,7 @@
|
||
|
cmake3 -S . -B build -DDOWNLOAD_CATCH=ON \
|
||
|
-DCMAKE_CXX_STANDARD=11 \
|
||
|
-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;test_virtual_functions.cpp"
|
||
|
|
||
|
# Building before installing Pip should produce a warning but not an error
|
||
|
@@ -453,6 +468,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
|
||
|
@@ -508,6 +524,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)")
|
||
|
|
||
|
@@ -540,6 +557,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)")
|
||
|
|
||
|
@@ -599,6 +617,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
|
||
|
@@ -649,6 +668,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
|
||
|
|
||
|
@@ -744,6 +764,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
|
||
|
@@ -790,6 +811,7 @@
|
||
|
-DPYBIND11_WERROR=ON
|
||
|
-DDOWNLOAD_CATCH=ON
|
||
|
-DDOWNLOAD_EIGEN=ON
|
||
|
+ -DCMAKE_CXX_FLAGS="/GR /EHsc /DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
||
|
|
||
|
- name: Build C++14
|
||
|
run: cmake --build build -j 2
|
||
|
@@ -810,12 +832,13 @@
|
||
|
- 3.7
|
||
|
std:
|
||
|
- 14
|
||
|
+ args: [ -DCMAKE_CXX_FLAGS="/GR /EHsc /DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT" ]
|
||
|
|
||
|
include:
|
||
|
- python: 2.7
|
||
|
std: 17
|
||
|
args: >
|
||
|
- -DCMAKE_CXX_FLAGS="/permissive- /EHsc /GR"
|
||
|
+ -DCMAKE_CXX_FLAGS="/permissive- /EHsc /GR /DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT"
|
||
|
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|