Skip to content

Commit 4e0102e

Browse files
committed
Fix
1 parent 987bf02 commit 4e0102e

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
if: runner.os == 'Windows'
9494
uses: msys2/setup-msys2@v2
9595
with:
96-
msystem: MINGW64
96+
msystem: ${{ endsWith(matrix.only, '32') && 'mingw32' || 'mingw64' }}
9797
update: true
9898
location: D:\
9999
install: >-
@@ -102,10 +102,9 @@ jobs:
102102
- name: Copy Windows ddl and mgc
103103
if: runner.os == 'Windows'
104104
run: |
105-
ls /msys64
106-
cp "/${{ endsWith(matrix.only, '32') && 'mingw32' || 'mingw64' }}/share/misc/magic.mgc" "magic"
107-
cp "/${{ endsWith(matrix.only, '32') && 'mingw32' || 'mingw64' }}/bin/libmagic-1.dll" "magic"
108-
cp "/${{ endsWith(matrix.only, '32') && 'mingw32' || 'mingw64' }}/bin/libsystre-0.dll" "magic"
105+
cp "/msys64/${{ endsWith(matrix.only, '32') && 'mingw32' || 'mingw64' }}/share/misc/magic.mgc" "magic"
106+
cp "/msys64/${{ endsWith(matrix.only, '32') && 'mingw32' || 'mingw64' }}/bin/libmagic-1.dll" "magic"
107+
cp "/msys64/${{ endsWith(matrix.only, '32') && 'mingw32' || 'mingw64' }}/bin/libsystre-0.dll" "magic"
109108
110109
- uses: pypa/cibuildwheel@v2.17.0 # sync version with pip install cibuildwheel above
111110
timeout-minutes: 10

0 commit comments

Comments
 (0)