@@ -69,13 +69,12 @@ jobs:
69
69
runs-on : ${{ matrix.runs-on }}
70
70
71
71
steps :
72
- - uses : actions/checkout@v3
72
+ - uses : actions/checkout@v4
73
73
74
74
- name : Setup Python ${{ matrix.python }}
75
- uses : actions/setup-python@v4
75
+ uses : actions/setup-python@v5
76
76
with :
77
77
python-version : ${{ matrix.python }}
78
- allow-prereleases : true
79
78
80
79
- name : Setup Boost (Linux)
81
80
# Can't use boost + define _
@@ -195,20 +194,21 @@ jobs:
195
194
matrix :
196
195
include :
197
196
# TODO: Fails on 3.10, investigate
198
- - python-version : " 3.9"
199
- python-debug : true
200
- valgrind : true
197
+ # JOB DISABLED (NEEDS WORK): https://github.com/pybind/pybind11/issues/4889
198
+ # - python-version: "3.9"
199
+ # python-debug: true
200
+ # valgrind: true
201
201
- python-version : " 3.11"
202
202
python-debug : false
203
203
204
204
name : " 🐍 ${{ matrix.python-version }}${{ matrix.python-debug && '-dbg' || '' }} (deadsnakes)${{ matrix.valgrind && ' • Valgrind' || '' }} • x64"
205
205
runs-on : ubuntu-20.04
206
206
207
207
steps :
208
- - uses : actions/checkout@v3
208
+ - uses : actions/checkout@v4
209
209
210
210
- name : Setup Python ${{ matrix.python-version }} (deadsnakes)
211
- uses : deadsnakes/action@v3.0.1
211
+ uses : deadsnakes/action@v3.1.0
212
212
with :
213
213
python-version : ${{ matrix.python-version }}
214
214
debug : ${{ matrix.python-debug }}
@@ -310,7 +310,7 @@ jobs:
310
310
container : " silkeh/clang:${{ matrix.clang }}${{ matrix.container_suffix }}"
311
311
312
312
steps :
313
- - uses : actions/checkout@v3
313
+ - uses : actions/checkout@v4
314
314
315
315
- name : Add wget and python3
316
316
run : apt-get update && apt-get install -y python3-dev python3-numpy python3-pytest libeigen3-dev
@@ -344,7 +344,7 @@ jobs:
344
344
container : nvidia/cuda:12.2.0-devel-ubuntu22.04
345
345
346
346
steps :
347
- - uses : actions/checkout@v3
347
+ - uses : actions/checkout@v4
348
348
349
349
# tzdata will try to ask for the timezone, so set the DEBIAN_FRONTEND
350
350
- name : Install 🐍 3
@@ -368,7 +368,7 @@ jobs:
368
368
# container: centos:8
369
369
#
370
370
# steps:
371
- # - uses: actions/checkout@v3
371
+ # - uses: actions/checkout@v4
372
372
#
373
373
# - name: Add Python 3 and a few requirements
374
374
# run: yum update -y && yum install -y git python3-devel python3-numpy python3-pytest make environment-modules
@@ -413,7 +413,7 @@ jobs:
413
413
# tzdata will try to ask for the timezone, so set the DEBIAN_FRONTEND
414
414
DEBIAN_FRONTEND : ' noninteractive'
415
415
steps :
416
- - uses : actions/checkout@v3
416
+ - uses : actions/checkout@v4
417
417
418
418
- name : Add NVHPC Repo
419
419
run : |
@@ -475,7 +475,7 @@ jobs:
475
475
container : " gcc:${{ matrix.gcc }}"
476
476
477
477
steps :
478
- - uses : actions/checkout@v3
478
+ - uses : actions/checkout@v4
479
479
480
480
- name : Add Python 3
481
481
run : apt-get update; apt-get install -y python3-dev python3-numpy python3-pytest python3-pip libeigen3-dev
@@ -535,7 +535,7 @@ jobs:
535
535
name : " 🐍 3 • ICC latest • x64"
536
536
537
537
steps :
538
- - uses : actions/checkout@v3
538
+ - uses : actions/checkout@v4
539
539
540
540
- name : Add apt repo
541
541
run : |
@@ -639,7 +639,13 @@ jobs:
639
639
container : " ${{ matrix.container }}"
640
640
641
641
steps :
642
- - uses : actions/checkout@v3
642
+ - name : Latest actions/checkout
643
+ uses : actions/checkout@v4
644
+ if : matrix.container != 'centos:7'
645
+
646
+ - name : Pin actions/checkout as required for centos:7
647
+ uses : actions/checkout@v3
648
+ if : matrix.container == 'centos:7'
643
649
644
650
- name : Add Python 3 (RHEL 7)
645
651
if : matrix.container == 'centos:7'
@@ -687,7 +693,7 @@ jobs:
687
693
container : i386/debian:buster
688
694
689
695
steps :
690
- - uses : actions/checkout@v1 # Required to run inside docker
696
+ - uses : actions/checkout@v1 # v1 is required to run inside docker
691
697
692
698
- name : Install requirements
693
699
run : |
@@ -730,9 +736,9 @@ jobs:
730
736
runs-on : ubuntu-latest
731
737
732
738
steps :
733
- - uses : actions/checkout@v3
739
+ - uses : actions/checkout@v4
734
740
735
- - uses : actions/setup-python@v4
741
+ - uses : actions/setup-python@v5
736
742
with :
737
743
python-version : " 3.x"
738
744
@@ -782,10 +788,10 @@ jobs:
782
788
runs-on : windows-2019
783
789
784
790
steps :
785
- - uses : actions/checkout@v3
791
+ - uses : actions/checkout@v4
786
792
787
793
- name : Setup Python ${{ matrix.python }}
788
- uses : actions/setup-python@v4
794
+ uses : actions/setup-python@v5
789
795
with :
790
796
python-version : ${{ matrix.python }}
791
797
architecture : x86
@@ -794,7 +800,7 @@ jobs:
794
800
795
801
796
802
- name : Prepare MSVC
797
- uses : ilammy/msvc-dev-cmd@v1.12.1
803
+ uses : ilammy/msvc-dev-cmd@v1.13.0
798
804
with :
799
805
arch : x86
800
806
@@ -835,10 +841,10 @@ jobs:
835
841
runs-on : windows-2019
836
842
837
843
steps :
838
- - uses : actions/checkout@v3
844
+ - uses : actions/checkout@v4
839
845
840
846
- name : Setup Python ${{ matrix.python }}
841
- uses : actions/setup-python@v4
847
+ uses : actions/setup-python@v5
842
848
with :
843
849
python-version : ${{ matrix.python }}
844
850
architecture : x86
@@ -847,7 +853,7 @@ jobs:
847
853
848
854
849
855
- name : Prepare MSVC
850
- uses : ilammy/msvc-dev-cmd@v1.12.1
856
+ uses : ilammy/msvc-dev-cmd@v1.13.0
851
857
with :
852
858
arch : x86
853
859
@@ -883,10 +889,10 @@ jobs:
883
889
runs-on : windows-2022
884
890
885
891
steps :
886
- - uses : actions/checkout@v3
892
+ - uses : actions/checkout@v4
887
893
888
894
- name : Setup Python ${{ matrix.python }}
889
- uses : actions/setup-python@v4
895
+ uses : actions/setup-python@v5
890
896
with :
891
897
python-version : ${{ matrix.python }}
892
898
@@ -953,20 +959,30 @@ jobs:
953
959
mingw-w64-${{matrix.env}}-gcc
954
960
mingw-w64-${{matrix.env}}-python-pip
955
961
mingw-w64-${{matrix.env}}-python-numpy
956
- mingw-w64-${{matrix.env}}-python-scipy
957
962
mingw-w64-${{matrix.env}}-cmake
958
963
mingw-w64-${{matrix.env}}-make
959
964
mingw-w64-${{matrix.env}}-python-pytest
960
965
mingw-w64-${{matrix.env}}-eigen3
961
966
mingw-w64-${{matrix.env}}-boost
962
967
mingw-w64-${{matrix.env}}-catch
963
968
964
- - uses : actions/checkout@v3
969
+ - uses : msys2/setup-msys2@v2
970
+ if : matrix.sys == 'mingw64'
971
+ with :
972
+ msystem : ${{matrix.sys}}
973
+ install : >-
974
+ git
975
+ mingw-w64-${{matrix.env}}-python-scipy
976
+
977
+ - uses : actions/checkout@v4
965
978
966
979
- name : Configure C++11
967
980
# LTO leads to many undefined reference like
968
981
# `pybind11::detail::function_call::function_call(pybind11::detail::function_call&&)
969
- run : cmake -G "MinGW Makefiles" -DCMAKE_CXX_STANDARD=11 -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -S . -B build
982
+ run : >-
983
+ cmake -G "MinGW Makefiles" -DCMAKE_CXX_STANDARD=11 -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON
984
+ -DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
985
+ -S . -B build
970
986
971
987
- name : Build C++11
972
988
run : cmake --build build -j 2
@@ -984,7 +1000,10 @@ jobs:
984
1000
run : git clean -fdx
985
1001
986
1002
- name : Configure C++14
987
- run : cmake -G "MinGW Makefiles" -DCMAKE_CXX_STANDARD=14 -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -S . -B build2
1003
+ run : >-
1004
+ cmake -G "MinGW Makefiles" -DCMAKE_CXX_STANDARD=14 -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON
1005
+ -DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
1006
+ -S . -B build2
988
1007
989
1008
- name : Build C++14
990
1009
run : cmake --build build2 -j 2
@@ -1002,7 +1021,10 @@ jobs:
1002
1021
run : git clean -fdx
1003
1022
1004
1023
- name : Configure C++17
1005
- run : cmake -G "MinGW Makefiles" -DCMAKE_CXX_STANDARD=17 -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON -S . -B build3
1024
+ run : >-
1025
+ cmake -G "MinGW Makefiles" -DCMAKE_CXX_STANDARD=17 -DPYBIND11_WERROR=ON -DDOWNLOAD_CATCH=ON
1026
+ -DPYTHON_EXECUTABLE=$(python -c "import sys; print(sys.executable)")
1027
+ -S . -B build3
1006
1028
1007
1029
- name : Build C++17
1008
1030
run : cmake --build build3 -j 2
@@ -1032,21 +1054,21 @@ jobs:
1032
1054
run : env
1033
1055
1034
1056
- name : Checkout
1035
- uses : actions/checkout@v3
1057
+ uses : actions/checkout@v4
1036
1058
1037
1059
- name : Set up Clang
1038
1060
uses : egor-tensin/setup-clang@v1
1039
1061
1040
1062
- name : Setup Python ${{ matrix.python }}
1041
- uses : actions/setup-python@v4
1063
+ uses : actions/setup-python@v5
1042
1064
with :
1043
1065
python-version : ${{ matrix.python }}
1044
1066
1045
1067
- name : Update CMake
1046
1068
1047
1069
1048
1070
- name : Install ninja-build tool
1049
- uses : seanmiddleditch/gha-setup-ninja@v3
1071
+ uses : seanmiddleditch/gha-setup-ninja@v4
1050
1072
1051
1073
- name : Run pip installs
1052
1074
run : |
@@ -1101,7 +1123,7 @@ jobs:
1101
1123
run : env
1102
1124
1103
1125
- name : Checkout
1104
- uses : actions/checkout@v3
1126
+ uses : actions/checkout@v4
1105
1127
1106
1128
- name : Show Clang++ version before brew install llvm
1107
1129
run : clang++ --version
0 commit comments