38
38
run_tests : YES
39
39
- target : x86_64-pc-windows-gnu
40
40
mingwdir : mingw64
41
+ gcc : x86_64-w64-mingw32-gcc
42
+ gcc_package : mingw-w64-x86_64-gcc
41
43
steps :
42
44
- uses : actions/checkout@v4
43
45
# v2 defaults to a shallow checkout, but we need at least to the previous tag
@@ -60,20 +62,22 @@ jobs:
60
62
if : matrix.mingwdir != ''
61
63
with :
62
64
msystem : ${{ matrix.mingwdir }}
65
+ install : ${{ matrix.gcc_package }}
63
66
- name : Add mingw tools to path
64
67
shell : powershell
65
68
if : matrix.mingwdir != ''
66
69
run : |
67
- # https://github.com/actions/runner-images/issues/5459#issuecomment-1532856844
68
- Remove-Item -Recurse -Force "C:\mingw64"
69
- Remove-Item -Recurse -Force "C:\Strawberry"
70
70
$(
71
- 'C:\msys64\${{ matrix.mingwdir }}\bin' + "`r`n"
72
- 'C:\msys64\usr\bin' + "`r`n"
73
- Get-Content $env:GITHUB_PATH -Raw
71
+ 'C:\msys64\${{ matrix.mingwdir }}\bin'
72
+ 'C:\msys64\usr\bin'
73
+ Get-Content $env:GITHUB_PATH
74
74
) | Set-Content $env:GITHUB_PATH
75
- Get-Command x86_64-w64-mingw32-gcc -ErrorAction SilentlyContinue
76
- Get-Command i686-w64-mingw32-gcc -ErrorAction SilentlyContinue
75
+ Get-Content $env:GITHUB_PATH
76
+ - name : Verify mingw gcc installation
77
+ shell : powershell
78
+ if : matrix.mingwdir != ''
79
+ run : |
80
+ Get-Command ${{ matrix.gcc }}
77
81
- name : Set PATH
78
82
run : |
79
83
echo "%USERPROFILE%\.cargo\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
@@ -186,6 +190,8 @@ jobs:
186
190
run_tests : YES
187
191
- target : x86_64-pc-windows-gnu
188
192
mingwdir : mingw64
193
+ gcc : x86_64-w64-mingw32-gcc
194
+ gcc_package : mingw-w64-x86_64-gcc
189
195
steps :
190
196
- uses : actions/checkout@v4
191
197
# v2 defaults to a shallow checkout, but we need at least to the previous tag
@@ -208,20 +214,22 @@ jobs:
208
214
if : matrix.mingwdir != ''
209
215
with :
210
216
msystem : ${{ matrix.mingwdir }}
217
+ install : ${{ matrix.gcc_package }}
211
218
- name : Add mingw tools to path
212
219
shell : powershell
213
220
if : matrix.mingwdir != ''
214
221
run : |
215
- # https://github.com/actions/runner-images/issues/5459#issuecomment-1532856844
216
- Remove-Item -Recurse -Force "C:\mingw64"
217
- Remove-Item -Recurse -Force "C:\Strawberry"
218
222
$(
219
- 'C:\msys64\${{ matrix.mingwdir }}\bin' + "`r`n"
220
- 'C:\msys64\usr\bin' + "`r`n"
221
- Get-Content $env:GITHUB_PATH -Raw
223
+ 'C:\msys64\${{ matrix.mingwdir }}\bin'
224
+ 'C:\msys64\usr\bin'
225
+ Get-Content $env:GITHUB_PATH
222
226
) | Set-Content $env:GITHUB_PATH
223
- Get-Command x86_64-w64-mingw32-gcc -ErrorAction SilentlyContinue
224
- Get-Command i686-w64-mingw32-gcc -ErrorAction SilentlyContinue
227
+ Get-Content $env:GITHUB_PATH
228
+ - name : Verify mingw gcc installation
229
+ shell : powershell
230
+ if : matrix.mingwdir != ''
231
+ run : |
232
+ Get-Command ${{ matrix.gcc }}
225
233
- name : Set PATH
226
234
run : |
227
235
echo "%USERPROFILE%\.cargo\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
@@ -336,8 +344,12 @@ jobs:
336
344
run_tests : YES
337
345
- target : x86_64-pc-windows-gnu
338
346
mingwdir : mingw64
347
+ gcc : x86_64-w64-mingw32-gcc
348
+ gcc_package : mingw-w64-x86_64-gcc
339
349
- target : i686-pc-windows-gnu # skip-pr skip-master
340
350
mingwdir : mingw32 # skip-pr skip-master
351
+ gcc : i686-w64-mingw32-gcc # skip-pr skip-master
352
+ gcc_package : mingw-w64-i686-gcc # skip-pr skip-master
341
353
steps :
342
354
- uses : actions/checkout@v4
343
355
# v2 defaults to a shallow checkout, but we need at least to the previous tag
@@ -360,20 +372,22 @@ jobs:
360
372
if : matrix.mingwdir != ''
361
373
with :
362
374
msystem : ${{ matrix.mingwdir }}
375
+ install : ${{ matrix.gcc_package }}
363
376
- name : Add mingw tools to path
364
377
shell : powershell
365
378
if : matrix.mingwdir != ''
366
379
run : |
367
- # https://github.com/actions/runner-images/issues/5459#issuecomment-1532856844
368
- Remove-Item -Recurse -Force "C:\mingw64"
369
- Remove-Item -Recurse -Force "C:\Strawberry"
370
380
$(
371
- 'C:\msys64\${{ matrix.mingwdir }}\bin' + "`r`n"
372
- 'C:\msys64\usr\bin' + "`r`n"
373
- Get-Content $env:GITHUB_PATH -Raw
381
+ 'C:\msys64\${{ matrix.mingwdir }}\bin'
382
+ 'C:\msys64\usr\bin'
383
+ Get-Content $env:GITHUB_PATH
374
384
) | Set-Content $env:GITHUB_PATH
375
- Get-Command x86_64-w64-mingw32-gcc -ErrorAction SilentlyContinue
376
- Get-Command i686-w64-mingw32-gcc -ErrorAction SilentlyContinue
385
+ Get-Content $env:GITHUB_PATH
386
+ - name : Verify mingw gcc installation
387
+ shell : powershell
388
+ if : matrix.mingwdir != ''
389
+ run : |
390
+ Get-Command ${{ matrix.gcc }}
377
391
- name : Set PATH
378
392
run : |
379
393
echo "%USERPROFILE%\.cargo\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
0 commit comments