Skip to content

Commit c827628

Browse files
committed
Merge remote-tracking branch 'origin/master' into interop
2 parents 2ecbe8e + d4d555d commit c827628

29 files changed

+235
-185
lines changed

.github/workflows/ci.yml

Lines changed: 32 additions & 121 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ jobs:
181181
runs-on: ${{ matrix.runs-on }}
182182

183183
steps:
184-
- uses: actions/checkout@v4
184+
- uses: actions/checkout@v5
185185

186186
- name: Setup Python ${{ matrix.python-version }}
187-
uses: actions/setup-python@v5
187+
uses: actions/setup-python@v6
188188
with:
189189
python-version: ${{ matrix.python-version }}
190190
allow-prereleases: true
@@ -242,7 +242,7 @@ jobs:
242242
timeout-minutes: 40
243243
container: quay.io/pypa/musllinux_1_2_x86_64:latest
244244
steps:
245-
- uses: actions/checkout@v4
245+
- uses: actions/checkout@v5
246246
with:
247247
fetch-depth: 0
248248

@@ -279,7 +279,7 @@ jobs:
279279
runs-on: ubuntu-latest
280280

281281
steps:
282-
- uses: actions/checkout@v4
282+
- uses: actions/checkout@v5
283283

284284
- name: Setup Python ${{ matrix.python-version }} (deadsnakes)
285285
uses: deadsnakes/action@v3.2.0
@@ -366,7 +366,7 @@ jobs:
366366
container: "silkeh/clang:${{ matrix.clang }}${{ matrix.container_suffix }}"
367367

368368
steps:
369-
- uses: actions/checkout@v4
369+
- uses: actions/checkout@v5
370370

371371
- name: Add wget and python3
372372
run: apt-get update && apt-get install -y python3-dev python3-numpy python3-pytest libeigen3-dev
@@ -403,7 +403,7 @@ jobs:
403403
container: nvidia/cuda:12.2.0-devel-ubuntu22.04
404404

405405
steps:
406-
- uses: actions/checkout@v4
406+
- uses: actions/checkout@v5
407407

408408
# tzdata will try to ask for the timezone, so set the DEBIAN_FRONTEND
409409
- name: Install 🐍 3
@@ -427,7 +427,7 @@ jobs:
427427
# container: centos:8
428428
#
429429
# steps:
430-
# - uses: actions/checkout@v4
430+
# - uses: actions/checkout@v5
431431
#
432432
# - name: Add Python 3 and a few requirements
433433
# run: yum update -y && yum install -y git python3-devel python3-numpy python3-pytest make environment-modules
@@ -473,7 +473,7 @@ jobs:
473473
# tzdata will try to ask for the timezone, so set the DEBIAN_FRONTEND
474474
DEBIAN_FRONTEND: 'noninteractive'
475475
steps:
476-
- uses: actions/checkout@v4
476+
- uses: actions/checkout@v5
477477

478478
- name: Add NVHPC Repo
479479
run: |
@@ -534,7 +534,7 @@ jobs:
534534
container: "gcc:${{ matrix.gcc }}"
535535

536536
steps:
537-
- uses: actions/checkout@v4
537+
- uses: actions/checkout@v5
538538

539539
- name: Add Python 3
540540
run: apt-get update; apt-get install -y python3-dev python3-numpy python3-pytest python3-pip libeigen3-dev
@@ -597,7 +597,7 @@ jobs:
597597
name: "🐍 3 • ICC latest • x64"
598598

599599
steps:
600-
- uses: actions/checkout@v4
600+
- uses: actions/checkout@v5
601601

602602
- name: Add apt repo
603603
run: |
@@ -710,7 +710,7 @@ jobs:
710710

711711
steps:
712712
- name: Latest actions/checkout
713-
uses: actions/checkout@v4
713+
uses: actions/checkout@v5
714714

715715
- name: Add Python 3.8
716716
if: matrix.container == 'almalinux:8'
@@ -811,9 +811,9 @@ jobs:
811811
runs-on: ubuntu-latest
812812

813813
steps:
814-
- uses: actions/checkout@v4
814+
- uses: actions/checkout@v5
815815

816-
- uses: actions/setup-python@v5
816+
- uses: actions/setup-python@v6
817817
with:
818818
python-version: "3.x"
819819

@@ -857,10 +857,10 @@ jobs:
857857
runs-on: windows-2022
858858

859859
steps:
860-
- uses: actions/checkout@v4
860+
- uses: actions/checkout@v5
861861

862862
- name: Setup Python ${{ matrix.python }}
863-
uses: actions/setup-python@v5
863+
uses: actions/setup-python@v6
864864
with:
865865
python-version: ${{ matrix.python }}
866866
architecture: x86
@@ -909,10 +909,10 @@ jobs:
909909
runs-on: windows-2022
910910

911911
steps:
912-
- uses: actions/checkout@v4
912+
- uses: actions/checkout@v5
913913

914914
- name: Setup Python ${{ matrix.python }}
915-
uses: actions/setup-python@v5
915+
uses: actions/setup-python@v6
916916
with:
917917
python-version: ${{ matrix.python }}
918918
architecture: x86
@@ -957,10 +957,10 @@ jobs:
957957
runs-on: windows-2022
958958

959959
steps:
960-
- uses: actions/checkout@v4
960+
- uses: actions/checkout@v5
961961

962962
- name: Setup Python ${{ matrix.python }}
963-
uses: actions/setup-python@v5
963+
uses: actions/setup-python@v6
964964
with:
965965
python-version: ${{ matrix.python }}
966966

@@ -1019,8 +1019,15 @@ jobs:
10191019
fail-fast: false
10201020
matrix:
10211021
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
10241031
steps:
10251032
- uses: msys2/setup-msys2@v2
10261033
with:
@@ -1034,17 +1041,9 @@ jobs:
10341041
mingw-w64-${{matrix.env}}-python-pytest
10351042
mingw-w64-${{matrix.env}}-boost
10361043
mingw-w64-${{matrix.env}}-catch
1044+
${{ matrix.extra_install }}
10371045
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
1046-
1047-
- uses: actions/checkout@v4
1046+
- uses: actions/checkout@v5
10481047

10491048
- name: Configure C++11
10501049
# LTO leads to many undefined reference like
@@ -1134,13 +1133,13 @@ jobs:
11341133
run: env
11351134

11361135
- name: Checkout
1137-
uses: actions/checkout@v4
1136+
uses: actions/checkout@v5
11381137

11391138
- name: Set up Clang
11401139
uses: egor-tensin/setup-clang@v1
11411140

11421141
- name: Setup Python ${{ matrix.python }}
1143-
uses: actions/setup-python@v5
1142+
uses: actions/setup-python@v6
11441143
with:
11451144
python-version: ${{ matrix.python }}
11461145

@@ -1189,91 +1188,3 @@ jobs:
11891188

11901189
- name: Clean directory
11911190
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-
uses: jwlawson/actions-setup-cmake@v2.0
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

.github/workflows/configure.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@ jobs:
4848
runs-on: ${{ matrix.runs-on }}
4949

5050
steps:
51-
- uses: actions/checkout@v4
51+
- uses: actions/checkout@v5
5252

5353
- name: Setup Python 3.11
54-
uses: actions/setup-python@v5
54+
uses: actions/setup-python@v6
5555
with:
5656
python-version: 3.11
5757

.github/workflows/docs-link.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
if: github.event.repository.fork == false
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v5
2323

2424
- name: Check for docs changes
2525
id: docs_changes

.github/workflows/format.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
name: Format
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: actions/checkout@v4
29-
- uses: actions/setup-python@v5
28+
- uses: actions/checkout@v5
29+
- uses: actions/setup-python@v6
3030
with:
3131
python-version: "3.x"
3232
- name: Add matchers
@@ -40,7 +40,7 @@ jobs:
4040
runs-on: ubuntu-latest
4141
container: silkeh/clang:20
4242
steps:
43-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@v5
4444

4545
- name: Install requirements
4646
run: apt-get update && apt-get install -y git python3-dev python3-pytest ninja-build

.github/workflows/labeler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
pull-requests: write
1515
steps:
1616

17-
- uses: actions/labeler@v5
17+
- uses: actions/labeler@v6
1818
if: >
1919
github.event.pull_request.merged == true &&
2020
!startsWith(github.event.pull_request.title, 'chore(deps):') &&

.github/workflows/nightlies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
if: github.repository_owner == 'pybind'
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v5
2424
with:
2525
fetch-depth: 0
2626

.github/workflows/pip.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ jobs:
2323
runs-on: windows-latest
2424

2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v5
2727

2828
- name: Setup 🐍 3.8
29-
uses: actions/setup-python@v5
29+
uses: actions/setup-python@v6
3030
with:
3131
python-version: 3.8
3232

@@ -47,10 +47,10 @@ jobs:
4747
runs-on: ubuntu-latest
4848

4949
steps:
50-
- uses: actions/checkout@v4
50+
- uses: actions/checkout@v5
5151

5252
- name: Setup 🐍 3.8
53-
uses: actions/setup-python@v5
53+
uses: actions/setup-python@v6
5454
with:
5555
python-version: 3.8
5656

@@ -103,7 +103,7 @@ jobs:
103103
- uses: actions/download-artifact@v5
104104

105105
- name: Generate artifact attestation for sdist and wheel
106-
uses: actions/attest-build-provenance@v2
106+
uses: actions/attest-build-provenance@v3
107107
with:
108108
subject-path: "*/pybind11*"
109109

.github/workflows/reusable-standard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
runs-on: ${{ inputs.runs-on }}
3131

3232
steps:
33-
- uses: actions/checkout@v4
33+
- uses: actions/checkout@v5
3434

3535
- name: Setup Python ${{ inputs.python-version }}
36-
uses: actions/setup-python@v5
36+
uses: actions/setup-python@v6
3737
with:
3838
python-version: ${{ inputs.python-version }}
3939
allow-prereleases: true

0 commit comments

Comments
 (0)