Skip to content

Commit 8ec0672

Browse files
projectgusdpgeorge
authored andcommitted
github/workflows: Workaround using CPython 3.12 in MSYS2 builds.
Once MSYS2 repository updates past Python 3.12, this commit can be reverted. Explanation: CPython 3.12 can't pass sys_settrace_features test (see parent commit for explanation). MSYS2 mingw-w64-ARCH-python package is currently 3.12.7. MSYS2 doesn't recommend installing old packages from their archive (due to library dependencies), so switch to the GitHub CI setup-python action for now. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <[email protected]>
1 parent 8e11e5f commit 8ec0672

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/ports_windows.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ jobs:
110110
run:
111111
shell: msys2 {0}
112112
steps:
113+
- uses: actions/setup-python@v5
114+
# note: can go back to installing mingw-w64-${{ matrix.env }}-python after
115+
# MSYS2 updates to Python >3.12 (due to settrace compatibility issue)
116+
with:
117+
python-version: '3.11'
113118
- uses: msys2/setup-msys2@v2
114119
with:
115120
msystem: ${{ matrix.sys }}
@@ -118,9 +123,9 @@ jobs:
118123
make
119124
mingw-w64-${{ matrix.env }}-gcc
120125
pkg-config
121-
mingw-w64-${{ matrix.env }}-python3
122126
git
123127
diffutils
128+
path-type: inherit # Remove when setup-python is removed
124129
- uses: actions/checkout@v4
125130
- name: Build mpy-cross.exe
126131
run: make -C mpy-cross -j2

0 commit comments

Comments
 (0)