38
38
run_tests : YES
39
39
- target : x86_64-pc-windows-gnu
40
40
mingwdir : mingw64
41
+ lto : off
41
42
steps :
42
43
- uses : actions/checkout@v4
43
44
# v2 defaults to a shallow checkout, but we need at least to the previous tag
60
61
if : matrix.mingwdir != ''
61
62
run : |
62
63
choco install mingw -y --no-progress
64
+ - name : Disable cargo's LTO for mingw
65
+ shell : powershell
66
+ if : matrix.mingwdir != ''
67
+ run : |
68
+ echo "CARGO_PROFILE_RELEASE_LTO=${{ matrix.lto }}" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
63
69
- name : Set PATH
64
70
run : |
65
71
echo "%USERPROFILE%\.cargo\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
@@ -172,6 +178,7 @@ jobs:
172
178
run_tests : YES
173
179
- target : x86_64-pc-windows-gnu
174
180
mingwdir : mingw64
181
+ lto : off
175
182
steps :
176
183
- uses : actions/checkout@v4
177
184
# v2 defaults to a shallow checkout, but we need at least to the previous tag
@@ -194,6 +201,11 @@ jobs:
194
201
if : matrix.mingwdir != ''
195
202
run : |
196
203
choco install mingw -y --no-progress
204
+ - name : Disable cargo's LTO for mingw
205
+ shell : powershell
206
+ if : matrix.mingwdir != ''
207
+ run : |
208
+ echo "CARGO_PROFILE_RELEASE_LTO=${{ matrix.lto }}" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
197
209
- name : Set PATH
198
210
run : |
199
211
echo "%USERPROFILE%\.cargo\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
@@ -308,8 +320,10 @@ jobs:
308
320
run_tests : YES
309
321
- target : x86_64-pc-windows-gnu
310
322
mingwdir : mingw64
323
+ lto : off
311
324
- target : i686-pc-windows-gnu # skip-pr skip-master
312
325
mingwdir : mingw32 # skip-pr skip-master
326
+ lto : off # skip-pr skip-master
313
327
steps :
314
328
- uses : actions/checkout@v4
315
329
# v2 defaults to a shallow checkout, but we need at least to the previous tag
@@ -332,6 +346,11 @@ jobs:
332
346
if : matrix.mingwdir != ''
333
347
run : |
334
348
choco install mingw -y --no-progress
349
+ - name : Disable cargo's LTO for mingw
350
+ shell : powershell
351
+ if : matrix.mingwdir != ''
352
+ run : |
353
+ echo "CARGO_PROFILE_RELEASE_LTO=${{ matrix.lto }}" | Out-File -Append -FilePath $env:GITHUB_ENV -Encoding utf8
335
354
- name : Set PATH
336
355
run : |
337
356
echo "%USERPROFILE%\.cargo\bin" | Out-File -Append -FilePath $env:GITHUB_PATH -Encoding utf8
0 commit comments