@@ -1019,8 +1019,15 @@ jobs:
1019
1019
fail-fast : false
1020
1020
matrix :
1021
1021
include :
1022
- - { sys: mingw64, env: x86_64 }
1023
- - { sys: mingw32, env: i686 }
1022
+ - sys : mingw32
1023
+ env : i686
1024
+ extra_install : " "
1025
+ - sys : mingw64
1026
+ env : x86_64
1027
+ extra_install : |
1028
+ mingw-w64-x86_64-python-numpy
1029
+ mingw-w64-x86_64-python-scipy
1030
+ mingw-w64-x86_64-eigen3
1024
1031
steps :
1025
1032
- uses : msys2/setup-msys2@v2
1026
1033
with :
@@ -1034,15 +1041,7 @@ jobs:
1034
1041
mingw-w64-${{matrix.env}}-python-pytest
1035
1042
mingw-w64-${{matrix.env}}-boost
1036
1043
mingw-w64-${{matrix.env}}-catch
1037
-
1038
- - uses : msys2/setup-msys2@v2
1039
- if : matrix.sys == 'mingw64'
1040
- with :
1041
- msystem : ${{matrix.sys}}
1042
- install : >-
1043
- mingw-w64-${{matrix.env}}-python-numpy
1044
- mingw-w64-${{matrix.env}}-python-scipy
1045
- mingw-w64-${{matrix.env}}-eigen3
1044
+ ${{ matrix.extra_install }}
1046
1045
1047
1046
- uses : actions/checkout@v4
1048
1047
@@ -1189,91 +1188,3 @@ jobs:
1189
1188
1190
1189
- name : Clean directory
1191
1190
run : git clean -fdx
1192
-
1193
- macos_brew_install_llvm :
1194
- if : github.event.pull_request.draft == false
1195
- name : " macos-13 • brew install llvm"
1196
- runs-on : macos-13
1197
-
1198
- env :
1199
- # https://apple.stackexchange.com/questions/227026/how-to-install-recent-clang-with-homebrew
1200
- LDFLAGS : ' -L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib'
1201
-
1202
- steps :
1203
- - name : Update PATH
1204
- run : echo "/usr/local/opt/llvm/bin" >> $GITHUB_PATH
1205
-
1206
- - name : Show env
1207
- run : env
1208
-
1209
- - name : Checkout
1210
- uses : actions/checkout@v4
1211
-
1212
- - name : Show Clang++ version before brew install llvm
1213
- run : clang++ --version
1214
-
1215
- - name : brew install llvm
1216
- run : brew install llvm
1217
-
1218
- - name : Show Clang++ version after brew install llvm
1219
- run : clang++ --version
1220
-
1221
- - name : Update CMake
1222
-
1223
-
1224
- - name : Run pip installs
1225
- run : |
1226
- python3 -m pip install --upgrade pip
1227
- python3 -m pip install -r tests/requirements.txt
1228
- python3 -m pip install numpy
1229
- python3 -m pip install scipy
1230
-
1231
- - name : Show CMake version
1232
- run : cmake --version
1233
-
1234
- - name : CMake Configure
1235
- run : >
1236
- cmake -S . -B .
1237
- -DPYBIND11_WERROR=ON
1238
- -DPYBIND11_SIMPLE_GIL_MANAGEMENT=OFF
1239
- -DDOWNLOAD_CATCH=ON
1240
- -DDOWNLOAD_EIGEN=ON
1241
- -DCMAKE_CXX_COMPILER=clang++
1242
- -DCMAKE_CXX_STANDARD=17
1243
- -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
1244
-
1245
- - name : Build
1246
- run : cmake --build . -j 2
1247
-
1248
- - name : Python tests
1249
- run : cmake --build . --target pytest -j 2
1250
-
1251
- - name : C++ tests
1252
- run : cmake --build . --target cpptest -j 2
1253
-
1254
- - name : Interface test
1255
- run : cmake --build . --target test_cmake_build -j 2
1256
-
1257
- - name : Visibility test
1258
- run : cmake --build . --target test_cross_module_rtti -j 2
1259
-
1260
- - name : CMake Configure - Exercise cmake -DPYBIND11_TEST_OVERRIDE
1261
- run : >
1262
- cmake -S . -B build_partial
1263
- -DPYBIND11_WERROR=ON
1264
- -DPYBIND11_SIMPLE_GIL_MANAGEMENT=OFF
1265
- -DDOWNLOAD_CATCH=ON
1266
- -DDOWNLOAD_EIGEN=ON
1267
- -DCMAKE_CXX_COMPILER=clang++
1268
- -DCMAKE_CXX_STANDARD=17
1269
- -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)")
1270
- "-DPYBIND11_TEST_OVERRIDE=test_call_policies.cpp;test_gil_scoped.cpp;test_thread.cpp"
1271
-
1272
- - name : Build - Exercise cmake -DPYBIND11_TEST_OVERRIDE
1273
- run : cmake --build build_partial -j 2
1274
-
1275
- - name : Python tests - Exercise cmake -DPYBIND11_TEST_OVERRIDE
1276
- run : cmake --build build_partial --target pytest -j 2
1277
-
1278
- - name : Clean directory
1279
- run : git clean -fdx
0 commit comments