@@ -861,32 +861,85 @@ jobs:
861
861
run : cmake --build build -t check
862
862
863
863
mingw :
864
+ name : " 🐍 3 • windows-latest • ${{ matrix.sys }}"
864
865
runs-on : windows-latest
865
866
defaults :
866
867
run :
867
868
shell : msys2 {0}
869
+ strategy :
870
+ fail-fast : false
871
+ matrix :
872
+ include :
873
+ - { sys: mingw64, env: x86_64 }
874
+ - { sys: mingw32, env: i686 }
868
875
steps :
869
876
- uses : msys2/setup-msys2@v2
870
877
with :
878
+ msystem : ${{matrix.sys}}
871
879
install : >-
872
- mingw-w64-x86_64-gcc
873
- mingw-w64-x86_64-python-pip
874
- mingw-w64-x86_64-cmake
875
- mingw-w64-x86_64-make
876
- mingw-w64-x86_64-python-pytest
877
- mingw-w64-x86_64-eigen3
878
- mingw-w64-x86_64-boost
879
- mingw-w64-x86_64-catch
880
+ git
881
+ mingw-w64-${{matrix.env}}-gcc
882
+ mingw-w64-${{matrix.env}}-python-pip
883
+ mingw-w64-${{matrix.env}}-python-numpy
884
+ mingw-w64-${{matrix.env}}-python-scipy
885
+ mingw-w64-${{matrix.env}}-cmake
886
+ mingw-w64-${{matrix.env}}-make
887
+ mingw-w64-${{matrix.env}}-python-pytest
888
+ mingw-w64-${{matrix.env}}-eigen3
889
+ mingw-w64-${{matrix.env}}-boost
890
+ mingw-w64-${{matrix.env}}-catch
880
891
881
- - uses : actions/checkout@v1
892
+ - uses : actions/checkout@v2
882
893
883
- - name : Configure
894
+ - name : Configure C++11
884
895
# LTO leads to many undefined reference like
885
896
# `pybind11::detail::function_call::function_call(pybind11::detail::function_call&&)
886
- run : cmake -G "MinGW Makefiles" -S . -B build
897
+ run : cmake -G "MinGW Makefiles" -DCMAKE_CXX_STANDARD=11 - S . -B build
887
898
888
- - name : Build
899
+ - name : Build C++11
889
900
run : cmake --build build -j 2
890
901
891
- - name : Python tests
892
- run : cmake --build build --target pytest
902
+ - name : Python tests C++11
903
+ run : cmake --build build --target pytest -j 2
904
+
905
+ - name : C++11 tests
906
+ run : cmake --build build --target cpptest -j 2
907
+
908
+ - name : Interface test C++11
909
+ run : cmake --build build --target test_cmake_build
910
+
911
+ - name : Clean directory
912
+ run : git clean -fdx
913
+
914
+ - name : Configure C++14
915
+ run : cmake -G "MinGW Makefiles" -DCMAKE_CXX_STANDARD=14 -S . -B build2
916
+
917
+ - name : Build C++14
918
+ run : cmake --build build2 -j 2
919
+
920
+ - name : Python tests C++14
921
+ run : cmake --build build2 --target pytest -j 2
922
+
923
+ - name : C++14 tests
924
+ run : cmake --build build2 --target cpptest -j 2
925
+
926
+ - name : Interface test C++14
927
+ run : cmake --build build2 --target test_cmake_build
928
+
929
+ - name : Clean directory
930
+ run : git clean -fdx
931
+
932
+ - name : Configure C++17
933
+ run : cmake -G "MinGW Makefiles" -DCMAKE_CXX_STANDARD=17 -S . -B build3
934
+
935
+ - name : Build C++17
936
+ run : cmake --build build3 -j 2
937
+
938
+ - name : Python tests C++17
939
+ run : cmake --build build3 --target pytest -j 2
940
+
941
+ - name : C++17 tests
942
+ run : cmake --build build3 --target cpptest -j 2
943
+
944
+ - name : Interface test C++17
945
+ run : cmake --build build3 --target test_cmake_build
0 commit comments