37
37
- target : x86_64-pc-windows-msvc
38
38
run_tests : YES
39
39
- target : x86_64-pc-windows-gnu
40
- mingw : https://ci-mirrors.rust-lang.org/rustc/x86_64-6.3.0-release-posix-seh-rt_v5-rev2.7z
41
40
mingwdir : mingw64
42
41
steps :
43
42
- uses : actions/checkout@v4
@@ -57,17 +56,10 @@ jobs:
57
56
New-Item "${env:USERPROFILE}\.cargo\git" -ItemType Directory -Force
58
57
shell : powershell
59
58
- name : Install mingw
60
- run : |
61
- # We retrieve mingw from the Rust CI buckets
62
- # Disable the download progress bar which can cause perf issues
63
- $ProgressPreference = "SilentlyContinue"
64
- Invoke-WebRequest ${{ matrix.mingw }} -OutFile mingw.7z
65
- 7z x -y mingw.7z -oC:\msys64 | Out-Null
66
- del mingw.7z
67
- echo "C:\msys64\usr\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
68
- echo "C:\msys64\${{ matrix.mingwdir }}\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
69
59
shell : powershell
70
- if : matrix.mingw != ''
60
+ if : matrix.mingwdir != ''
61
+ run : |
62
+ choco install mingw -y --no-progress
71
63
- name : Set PATH
72
64
run : |
73
65
echo "%USERPROFILE%\.cargo\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
@@ -123,7 +115,7 @@ jobs:
123
115
cargo check --all --all-targets --features test
124
116
git ls-files -- '*.rs' | xargs touch
125
117
- name : Run cargo clippy
126
- if : matrix.mode != 'release' && matrix.mingw == ''
118
+ if : matrix.mode != 'release' && matrix.mingwdir == ''
127
119
env :
128
120
TARGET : ${{ matrix.target }}
129
121
run : |
@@ -179,7 +171,6 @@ jobs:
179
171
- target : x86_64-pc-windows-msvc
180
172
run_tests : YES
181
173
- target : x86_64-pc-windows-gnu
182
- mingw : https://ci-mirrors.rust-lang.org/rustc/x86_64-6.3.0-release-posix-seh-rt_v5-rev2.7z
183
174
mingwdir : mingw64
184
175
steps :
185
176
- uses : actions/checkout@v4
@@ -199,17 +190,10 @@ jobs:
199
190
New-Item "${env:USERPROFILE}\.cargo\git" -ItemType Directory -Force
200
191
shell : powershell
201
192
- name : Install mingw
202
- run : |
203
- # We retrieve mingw from the Rust CI buckets
204
- # Disable the download progress bar which can cause perf issues
205
- $ProgressPreference = "SilentlyContinue"
206
- Invoke-WebRequest ${{ matrix.mingw }} -OutFile mingw.7z
207
- 7z x -y mingw.7z -oC:\msys64 | Out-Null
208
- del mingw.7z
209
- echo "C:\msys64\usr\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
210
- echo "C:\msys64\${{ matrix.mingwdir }}\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
211
193
shell : powershell
212
- if : matrix.mingw != ''
194
+ if : matrix.mingwdir != ''
195
+ run : |
196
+ choco install mingw -y --no-progress
213
197
- name : Set PATH
214
198
run : |
215
199
echo "%USERPROFILE%\.cargo\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
@@ -265,7 +249,7 @@ jobs:
265
249
cargo check --all --all-targets --features test
266
250
git ls-files -- '*.rs' | xargs touch
267
251
- name : Run cargo clippy
268
- if : matrix.mode != 'release' && matrix.mingw == ''
252
+ if : matrix.mode != 'release' && matrix.mingwdir == ''
269
253
env :
270
254
TARGET : ${{ matrix.target }}
271
255
run : |
@@ -323,11 +307,9 @@ jobs:
323
307
- target : x86_64-pc-windows-msvc
324
308
run_tests : YES
325
309
- target : x86_64-pc-windows-gnu
326
- mingw : https://ci-mirrors.rust-lang.org/rustc/x86_64-6.3.0-release-posix-seh-rt_v5-rev2.7z
327
310
mingwdir : mingw64
328
311
- target : i686-pc-windows-gnu # skip-pr skip-master
329
312
mingwdir : mingw32 # skip-pr skip-master
330
- mingw : https://ci-mirrors.rust-lang.org/rustc/i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z # skip-pr skip-master
331
313
steps :
332
314
- uses : actions/checkout@v4
333
315
# v2 defaults to a shallow checkout, but we need at least to the previous tag
@@ -346,17 +328,10 @@ jobs:
346
328
New-Item "${env:USERPROFILE}\.cargo\git" -ItemType Directory -Force
347
329
shell : powershell
348
330
- name : Install mingw
349
- run : |
350
- # We retrieve mingw from the Rust CI buckets
351
- # Disable the download progress bar which can cause perf issues
352
- $ProgressPreference = "SilentlyContinue"
353
- Invoke-WebRequest ${{ matrix.mingw }} -OutFile mingw.7z
354
- 7z x -y mingw.7z -oC:\msys64 | Out-Null
355
- del mingw.7z
356
- echo "C:\msys64\usr\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
357
- echo "C:\msys64\${{ matrix.mingwdir }}\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
358
331
shell : powershell
359
- if : matrix.mingw != ''
332
+ if : matrix.mingwdir != ''
333
+ run : |
334
+ choco install mingw -y --no-progress
360
335
- name : Set PATH
361
336
run : |
362
337
echo "%USERPROFILE%\.cargo\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
@@ -412,7 +387,7 @@ jobs:
412
387
cargo check --all --all-targets --features test
413
388
git ls-files -- '*.rs' | xargs touch
414
389
- name : Run cargo clippy
415
- if : matrix.mode != 'release' && matrix.mingw == ''
390
+ if : matrix.mode != 'release' && matrix.mingwdir == ''
416
391
env :
417
392
TARGET : ${{ matrix.target }}
418
393
run : |
0 commit comments