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