37
37
- target : x86_64-pc-windows-msvc
38
38
run_tests : YES
39
39
- target : x86_64-pc-windows-gnu
40
+ arch : x86_64
40
41
mingwdir : mingw64
41
42
gcc : x86_64-w64-mingw32-gcc
42
- gcc_package : mingw-w64-x86_64-gcc
43
43
steps :
44
44
- uses : actions/checkout@v4
45
45
# v2 defaults to a shallow checkout, but we need at least to the previous tag
@@ -58,34 +58,16 @@ jobs:
58
58
New-Item "${env:USERPROFILE}\.cargo\git" -ItemType Directory -Force
59
59
shell : powershell
60
60
- name : Install mingw
61
- uses : msys2 /setup-msys2@v2
61
+ uses : bwoodsend /setup-winlibs-action@v1
62
62
if : matrix.mingwdir != ''
63
63
with :
64
- msystem : ${{ matrix.mingwdir }}
65
- install : ${{ matrix.gcc_package }}
66
- - name : Add mingw tools to path
67
- shell : python
68
- if : matrix.mingwdir != ''
69
- run : |
70
- import os
71
- paths = [
72
- r'C:\msys64\${{ matrix.mingwdir }}\bin',
73
- r'C:\msys64\usr\bin',
74
- ]
75
- excluded = {
76
- r'C:\mingw64\bin',
77
- }
78
- with open(os.environ["GITHUB_PATH"], "r+") as fp:
79
- lines = fp.readlines()
80
- lines = paths + [l for l in lines if l not in excluded]
81
- fp.seek(0)
82
- fp.writelines(lines)
64
+ architecture : ${{ matrix.arch }}
83
65
- name : Verify mingw gcc installation
84
66
shell : powershell
85
67
if : matrix.mingwdir != ''
86
68
run : |
87
- choco uninstall -y strawberryperl
88
69
Get-Command ${{ matrix.gcc }}
70
+ ${{ matrix.gcc }} --version
89
71
- name : Set PATH
90
72
run : |
91
73
echo "%USERPROFILE%\.cargo\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
@@ -197,9 +179,9 @@ jobs:
197
179
- target : x86_64-pc-windows-msvc
198
180
run_tests : YES
199
181
- target : x86_64-pc-windows-gnu
182
+ arch : x86_64
200
183
mingwdir : mingw64
201
184
gcc : x86_64-w64-mingw32-gcc
202
- gcc_package : mingw-w64-x86_64-gcc
203
185
steps :
204
186
- uses : actions/checkout@v4
205
187
# v2 defaults to a shallow checkout, but we need at least to the previous tag
@@ -218,34 +200,16 @@ jobs:
218
200
New-Item "${env:USERPROFILE}\.cargo\git" -ItemType Directory -Force
219
201
shell : powershell
220
202
- name : Install mingw
221
- uses : msys2 /setup-msys2@v2
203
+ uses : bwoodsend /setup-winlibs-action@v1
222
204
if : matrix.mingwdir != ''
223
205
with :
224
- msystem : ${{ matrix.mingwdir }}
225
- install : ${{ matrix.gcc_package }}
226
- - name : Add mingw tools to path
227
- shell : python
228
- if : matrix.mingwdir != ''
229
- run : |
230
- import os
231
- paths = [
232
- r'C:\msys64\${{ matrix.mingwdir }}\bin',
233
- r'C:\msys64\usr\bin',
234
- ]
235
- excluded = {
236
- r'C:\mingw64\bin',
237
- }
238
- with open(os.environ["GITHUB_PATH"], "r+") as fp:
239
- lines = fp.readlines()
240
- lines = paths + [l for l in lines if l not in excluded]
241
- fp.seek(0)
242
- fp.writelines(lines)
206
+ architecture : ${{ matrix.arch }}
243
207
- name : Verify mingw gcc installation
244
208
shell : powershell
245
209
if : matrix.mingwdir != ''
246
210
run : |
247
- choco uninstall -y strawberryperl
248
211
Get-Command ${{ matrix.gcc }}
212
+ ${{ matrix.gcc }} --version
249
213
- name : Set PATH
250
214
run : |
251
215
echo "%USERPROFILE%\.cargo\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
@@ -359,13 +323,13 @@ jobs:
359
323
- target : x86_64-pc-windows-msvc
360
324
run_tests : YES
361
325
- target : x86_64-pc-windows-gnu
326
+ arch : x86_64
362
327
mingwdir : mingw64
363
328
gcc : x86_64-w64-mingw32-gcc
364
- gcc_package : mingw-w64-x86_64-gcc
365
329
- target : i686-pc-windows-gnu # skip-pr skip-master
330
+ arch : i686 # skip-pr skip-master
366
331
mingwdir : mingw32 # skip-pr skip-master
367
332
gcc : i686-w64-mingw32-gcc # skip-pr skip-master
368
- gcc_package : mingw-w64-i686-gcc # skip-pr skip-master
369
333
steps :
370
334
- uses : actions/checkout@v4
371
335
# v2 defaults to a shallow checkout, but we need at least to the previous tag
@@ -384,34 +348,16 @@ jobs:
384
348
New-Item "${env:USERPROFILE}\.cargo\git" -ItemType Directory -Force
385
349
shell : powershell
386
350
- name : Install mingw
387
- uses : msys2 /setup-msys2@v2
351
+ uses : bwoodsend /setup-winlibs-action@v1
388
352
if : matrix.mingwdir != ''
389
353
with :
390
- msystem : ${{ matrix.mingwdir }}
391
- install : ${{ matrix.gcc_package }}
392
- - name : Add mingw tools to path
393
- shell : python
394
- if : matrix.mingwdir != ''
395
- run : |
396
- import os
397
- paths = [
398
- r'C:\msys64\${{ matrix.mingwdir }}\bin',
399
- r'C:\msys64\usr\bin',
400
- ]
401
- excluded = {
402
- r'C:\mingw64\bin',
403
- }
404
- with open(os.environ["GITHUB_PATH"], "r+") as fp:
405
- lines = fp.readlines()
406
- lines = paths + [l for l in lines if l not in excluded]
407
- fp.seek(0)
408
- fp.writelines(lines)
354
+ architecture : ${{ matrix.arch }}
409
355
- name : Verify mingw gcc installation
410
356
shell : powershell
411
357
if : matrix.mingwdir != ''
412
358
run : |
413
- choco uninstall -y strawberryperl
414
359
Get-Command ${{ matrix.gcc }}
360
+ ${{ matrix.gcc }} --version
415
361
- name : Set PATH
416
362
run : |
417
363
echo "%USERPROFILE%\.cargo\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
0 commit comments