Skip to content

Commit fa70576

Browse files
committed
ci: make mingw builds robust to version bumps
1 parent 032450e commit fa70576

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,9 @@ jobs:
403403

404404
- name: Create libpython symlink
405405
shell: msys2 {0}
406-
run: ln -s /${{ matrix.path }}/lib/libpython3.11.dll.a /${{ matrix.path }}/lib/libpython311.dll.a
406+
run: |
407+
PYTHON_MINOR_VER=$(python -c "import sys; print(sys.version_info.minor)")
408+
ln -s /${{ matrix.path }}/lib/libpython3.${PYTHON_MINOR_VER}.dll.a /${{ matrix.path }}/lib/libpython3${PYTHON_MINOR_VER}.dll.a
407409
408410
- name: Test examples
409411
shell: msys2 {0}

0 commit comments

Comments
 (0)