2024-07-29 18:19:22 +00:00
|
|
|
--- ci.yml 2024-07-29 11:18:11.967568957 -0700
|
|
|
|
+++ ci_sh_def.yml 2024-07-29 11:18:42.087538968 -0700
|
2021-06-19 22:56:08 +00:00
|
|
|
@@ -1,4 +1,16 @@
|
2021-10-27 17:55:24 +00:00
|
|
|
-name: CI
|
2021-04-20 21:34:31 +00:00
|
|
|
+# 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
|
2021-06-19 22:56:08 +00:00
|
|
|
+# git commit -a -m 'Tracking ci.yml changes from master.'
|
2021-04-20 21:34:31 +00:00
|
|
|
+#
|
|
|
|
+# Thanks a lot to @rhaschke for PR #2930!
|
|
|
|
+
|
|
|
|
+name: "CI-SH-DEF"
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
2023-05-16 14:56:40 +00:00
|
|
|
@@ -13,7 +25,7 @@
|
|
|
|
permissions: read-all
|
2021-10-27 17:55:24 +00:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
- group: test-sh-avl${{ github.ref }}
|
|
|
|
+ group: test-sh-def-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
env:
|
2024-06-22 05:58:06 +00:00
|
|
|
@@ -126,6 +138,7 @@
|
2021-07-11 07:46:36 +00:00
|
|
|
-DDOWNLOAD_CATCH=ON
|
2021-04-20 21:34:31 +00:00
|
|
|
-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
|
2024-06-22 05:58:06 +00:00
|
|
|
@@ -155,6 +168,7 @@
|
2021-07-11 07:46:36 +00:00
|
|
|
-DDOWNLOAD_CATCH=ON
|
2021-04-20 21:34:31 +00:00
|
|
|
-DDOWNLOAD_EIGEN=ON
|
|
|
|
-DCMAKE_CXX_STANDARD=17
|
|
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT ${{runner.os == 'Windows' && '/GR /EHsc' || ''}}"
|
|
|
|
${{ matrix.args }}
|
|
|
|
|
2021-12-03 19:12:53 +00:00
|
|
|
- name: Build
|
2024-06-22 05:58:06 +00:00
|
|
|
@@ -174,6 +188,7 @@
|
2021-09-20 13:01:58 +00:00
|
|
|
-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 }}
|
2023-04-27 06:44:24 +00:00
|
|
|
|
2024-06-22 05:58:06 +00:00
|
|
|
@@ -217,6 +232,7 @@
|
2024-06-11 01:20:40 +00:00
|
|
|
-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
|
2024-06-22 05:58:06 +00:00
|
|
|
@@ -290,6 +306,7 @@
|
2021-07-30 19:28:06 +00:00
|
|
|
-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
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -364,6 +381,7 @@
|
2021-04-20 21:34:31 +00:00
|
|
|
-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
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -393,7 +411,7 @@
|
2021-04-20 21:34:31 +00:00
|
|
|
run: apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y cmake git python3-dev python3-pytest python3-numpy
|
|
|
|
|
|
|
|
- name: Configure
|
2022-12-21 07:52:47 +00:00
|
|
|
- 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"
|
2021-04-20 21:34:31 +00:00
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: cmake --build build -j2 --verbose
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -481,7 +499,7 @@
|
2023-08-08 04:03:46 +00:00
|
|
|
cmake -S . -B build -DDOWNLOAD_CATCH=ON \
|
|
|
|
-DCMAKE_CXX_STANDARD=17 \
|
2021-04-20 21:34:31 +00:00
|
|
|
-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" \
|
2022-10-30 20:33:08 +00:00
|
|
|
-DPYBIND11_TEST_FILTER="test_smart_ptr.cpp"
|
2021-04-20 21:34:31 +00:00
|
|
|
|
2023-08-08 04:03:46 +00:00
|
|
|
- name: Build
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -537,6 +555,7 @@
|
2021-04-20 21:34:31 +00:00
|
|
|
-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
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -559,6 +578,7 @@
|
2023-04-27 06:44:24 +00:00
|
|
|
-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"
|
|
|
|
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -608,6 +628,7 @@
|
2021-04-20 21:34:31 +00:00
|
|
|
-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)")
|
|
|
|
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -640,6 +661,7 @@
|
2021-04-20 21:34:31 +00:00
|
|
|
-DDOWNLOAD_CATCH=ON \
|
|
|
|
-DDOWNLOAD_EIGEN=OFF \
|
2022-01-12 01:52:49 +00:00
|
|
|
-DCMAKE_CXX_STANDARD=17 \
|
2021-04-20 21:34:31 +00:00
|
|
|
+ -DCMAKE_CXX_FLAGS="-DPYBIND11_USE_SMART_HOLDER_AS_DEFAULT" \
|
|
|
|
-DCMAKE_CXX_COMPILER=$(which icpc) \
|
|
|
|
-DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
|
|
|
|
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -711,6 +733,7 @@
|
2021-04-20 21:34:31 +00:00
|
|
|
-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
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -761,6 +784,7 @@
|
2021-04-20 21:34:31 +00:00
|
|
|
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
|
|
|
|
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -864,6 +888,7 @@
|
2021-04-20 21:34:31 +00:00
|
|
|
-DPYBIND11_WERROR=ON
|
2021-07-11 07:46:36 +00:00
|
|
|
-DDOWNLOAD_CATCH=ON
|
2021-04-20 21:34:31 +00:00
|
|
|
-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
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -918,6 +943,7 @@
|
2022-03-10 18:37:16 +00:00
|
|
|
-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
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -960,6 +986,7 @@
|
2022-02-15 00:20:48 +00:00
|
|
|
-DDOWNLOAD_CATCH=ON
|
2022-02-16 15:17:51 +00:00
|
|
|
-DDOWNLOAD_EIGEN=ON
|
2022-02-15 00:20:48 +00:00
|
|
|
-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
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -980,6 +1007,7 @@
|
2023-04-27 06:44:24 +00:00
|
|
|
-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
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -1032,6 +1060,7 @@
|
2023-12-15 07:58:56 +00:00
|
|
|
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
|
2021-07-30 18:37:51 +00:00
|
|
|
|
2021-08-26 22:03:41 +00:00
|
|
|
- name: Build C++11
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -1053,6 +1082,7 @@
|
2023-12-15 07:58:56 +00:00
|
|
|
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
|
2021-08-26 22:03:41 +00:00
|
|
|
|
|
|
|
- name: Build C++14
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -1074,6 +1104,7 @@
|
2023-12-15 07:58:56 +00:00
|
|
|
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
|
2021-08-26 22:03:41 +00:00
|
|
|
|
|
|
|
- name: Build C++17
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -1141,6 +1172,7 @@
|
2022-11-18 17:01:40 +00:00
|
|
|
-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
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -1206,6 +1238,7 @@
|
2022-11-18 17:01:40 +00:00
|
|
|
-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
|
2024-07-29 18:19:22 +00:00
|
|
|
@@ -1229,6 +1262,7 @@
|
2023-04-27 06:44:24 +00:00
|
|
|
-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"
|
|
|
|
|