Skip to content

Commit 44272c9

Browse files
committed
Fix "🐍 3 • windows-latest • mingw64" job (apparently msys2/setup-msys2@v2 cannot be run twice anymore):
https://github.com/pybind/pybind11/actions/runs/17394902023/job/49417376616?pr=5796 ``` Run msys2/setup-msys2@v2 with: msystem: mingw64 install: mingw-w64-x86_64-python-numpy mingw-w64-x86_64-python-scipy mingw-w64-x86_64-eigen3 path-type: minimal update: false pacboy: false release: true location: RUNNER_TEMP platform-check-severity: fatal cache: true env: PYTHONDEVMODE: 1 PIP_BREAK_SYSTEM_PACKAGES: 1 PIP_ONLY_BINARY: numpy FORCE_COLOR: 3 PYTEST_TIMEOUT: 300 VERBOSE: 1 CMAKE_COLOR_DIAGNOSTICS: 1 MSYSTEM: MINGW64 Error: Trying to install MSYS2 to D:\a\_temp\msys64 but that already exists, cannot continue. ```
1 parent 91d34a7 commit 44272c9

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
install_mingw64_only: ""
1025+
- sys: mingw64
1026+
env: x86_64
1027+
install_mingw64_only: |
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,15 +1041,7 @@ jobs:
10341041
mingw-w64-${{matrix.env}}-python-pytest
10351042
mingw-w64-${{matrix.env}}-boost
10361043
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.install_mingw64_only }}
10461045
10471046
- uses: actions/checkout@v4
10481047

0 commit comments

Comments
 (0)