|
35 | 35 | shell: bash # Use `bash` even in the Windows job. |
36 | 36 |
|
37 | 37 | steps: |
| 38 | + - name: Put temporary files on a faster drive |
| 39 | + if: startsWith(matrix.os, 'windows') && !endsWith(matrix.os, '-arm') |
| 40 | + env: |
| 41 | + NEW_TEMP: 'D:\a\_temp' |
| 42 | + run: | |
| 43 | + Get-Item -Path $Env:NEW_TEMP -ErrorAction Stop # It should already exist. |
| 44 | + Add-Content -Value "TEMP=$Env:NEW_TEMP" -Path $Env:GITHUB_ENV |
| 45 | + Add-Content -Value "TMP=$Env:NEW_TEMP" -Path $Env:GITHUB_ENV |
38 | 46 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
39 | 47 | with: |
40 | 48 | persist-credentials: false |
@@ -254,6 +262,14 @@ jobs: |
254 | 262 | runs-on: ${{ matrix.os }} |
255 | 263 |
|
256 | 264 | steps: |
| 265 | + - name: Put temporary files on a faster drive |
| 266 | + if: startsWith(matrix.os, 'windows') && !endsWith(matrix.os, '-arm') |
| 267 | + env: |
| 268 | + NEW_TEMP: 'D:\a\_temp' |
| 269 | + run: | |
| 270 | + Get-Item -Path $Env:NEW_TEMP -ErrorAction Stop # It should already exist. |
| 271 | + Add-Content -Value "TEMP=$Env:NEW_TEMP" -Path $Env:GITHUB_ENV |
| 272 | + Add-Content -Value "TMP=$Env:NEW_TEMP" -Path $Env:GITHUB_ENV |
257 | 273 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
258 | 274 | with: |
259 | 275 | persist-credentials: false |
@@ -323,6 +339,14 @@ jobs: |
323 | 339 | runs-on: ${{ matrix.os }} |
324 | 340 |
|
325 | 341 | steps: |
| 342 | + - name: Put temporary files on a faster drive |
| 343 | + if: startsWith(matrix.os, 'windows') && !endsWith(matrix.os, '-arm') |
| 344 | + env: |
| 345 | + NEW_TEMP: 'D:\a\_temp' |
| 346 | + run: | |
| 347 | + Get-Item -Path $Env:NEW_TEMP -ErrorAction Stop # It should already exist. |
| 348 | + Add-Content -Value "TEMP=$Env:NEW_TEMP" -Path $Env:GITHUB_ENV |
| 349 | + Add-Content -Value "TMP=$Env:NEW_TEMP" -Path $Env:GITHUB_ENV |
326 | 350 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
327 | 351 | with: |
328 | 352 | persist-credentials: false |
@@ -438,6 +462,14 @@ jobs: |
438 | 462 | TARGET: i686-pc-windows-msvc |
439 | 463 |
|
440 | 464 | steps: |
| 465 | + - name: Put temporary files on a faster drive |
| 466 | + if: startsWith(matrix.os, 'windows') && !endsWith(matrix.os, '-arm') |
| 467 | + env: |
| 468 | + NEW_TEMP: 'D:\a\_temp' |
| 469 | + run: | |
| 470 | + Get-Item -Path $Env:NEW_TEMP -ErrorAction Stop # It should already exist. |
| 471 | + Add-Content -Value "TEMP=$Env:NEW_TEMP" -Path $Env:GITHUB_ENV |
| 472 | + Add-Content -Value "TMP=$Env:NEW_TEMP" -Path $Env:GITHUB_ENV |
441 | 473 | - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
442 | 474 | with: |
443 | 475 | persist-credentials: false |
|
0 commit comments