|
38 | 38 | - name: Use faster temporary storage (Windows) |
39 | 39 | if: runner.os == 'Windows' |
40 | 40 | run: | |
41 | | - $fast_dir = "D:\fast-dir" |
42 | | - New-Item -ItemType Directory -Path "$fast_dir" |
43 | | - New-Item -ItemType Directory -Path "$fast_dir\temp" |
44 | | - New-Item -ItemType Directory -Path "$fast_dir\.m2" |
45 | | - New-Item -ItemType Directory -Path "$fast_dir\.gradle" |
46 | | -
|
47 | | - if (Test-Path "$env:userprofile\.m2") |
48 | | - { |
49 | | - Remove-Item "$env:userprofile\.m2" -Recurse |
50 | | - } |
51 | | - New-Item -ItemType SymbolicLink -Path "$env:userprofile\.m2" -Target "$fast_dir\.m2" |
52 | | -
|
53 | | - echo "TMP=$fast_dir\temp" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append |
54 | | - echo "TEMP=$fast_dir\temp" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append |
55 | | - echo "M2_HOME=$fast_dir\.m2" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append |
56 | | - echo "GRADLE_USER_HOME=$fast_dir\.gradle" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append |
| 41 | + echo "TMP=$env:RUNNER_TEMP" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append |
| 42 | + echo "TEMP=$env:RUNNER_TEMP" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append |
57 | 43 | - name: Checkout code |
58 | 44 | uses: actions/checkout@v5 |
59 | 45 | with: |
@@ -263,22 +249,8 @@ jobs: |
263 | 249 | steps: |
264 | 250 | - name: Use faster temporary storage (Windows) |
265 | 251 | run: | |
266 | | - $fast_dir = "D:\fast-dir" |
267 | | - New-Item -ItemType Directory -Path "$fast_dir" |
268 | | - New-Item -ItemType Directory -Path "$fast_dir\temp" |
269 | | - New-Item -ItemType Directory -Path "$fast_dir\.m2" |
270 | | - New-Item -ItemType Directory -Path "$fast_dir\.gradle" |
271 | | -
|
272 | | - if (Test-Path "$env:userprofile\.m2") |
273 | | - { |
274 | | - Remove-Item "$env:userprofile\.m2" -Recurse |
275 | | - } |
276 | | - New-Item -ItemType SymbolicLink -Path "$env:userprofile\.m2" -Target "$fast_dir\.m2" |
277 | | -
|
278 | | - echo "TMP=$fast_dir\temp" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append |
279 | | - echo "TEMP=$fast_dir\temp" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append |
280 | | - echo "M2_HOME=$fast_dir\.m2" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append |
281 | | - echo "GRADLE_USER_HOME=$fast_dir\.gradle" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append |
| 252 | + echo "TMP=$env:RUNNER_TEMP" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append |
| 253 | + echo "TEMP=$env:RUNNER_TEMP" | Out-File $env:GITHUB_ENV -Encoding utf8 -Append |
282 | 254 | - name: Checkout code |
283 | 255 | uses: actions/checkout@v5 |
284 | 256 | with: |
|
0 commit comments