Skip to content

Commit fc7c93f

Browse files
KapJIfacebook-github-bot
authored andcommitted
buck2/github: use drive D on Windows
Summary: Drive C is known to be significantly slower on Github Windows runners: actions/runner-images#8755 Use drive D for Cargo and Rustup. * `build_debug` **hg 23m34s** -> **20m25s** * `build_release` **28m5s** -> **22m56s** Differential Revision: D66011457
1 parent a947cbe commit fc7c93f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/actions/setup_windows_env/action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@ description: Setup Windows environment for building and testing
33
runs:
44
using: composite
55
steps:
6+
- name: Configure Cargo and Rustup to use drive D
7+
run: |
8+
New-Item -ItemType Directory -Path D:\rustup
9+
New-Item -ItemType Directory -Path D:\cargo
10+
New-Item -ItemType Directory -Path D:\temp
11+
"RUSTUP_HOME=D:\rustup" | Out-File -FilePath $env:GITHUB_ENV -Append
12+
"CARGO_HOME=D:\cargo" | Out-File -FilePath $env:GITHUB_ENV -Append
13+
"TEMP=D:\temp" | Out-File -FilePath $env:GITHUB_ENV -Append
14+
"TMP=D:\temp" | Out-File -FilePath $env:GITHUB_ENV -Append
15+
"D:\cargo\bin" | Out-File -FilePath $env:GITHUB_PATH -Append
616
shell: pwsh
717
- name: Write Visual Studio path
818
run: |-

0 commit comments

Comments
 (0)