Skip to content

Commit 0e6ec85

Browse files
MarshallOfSoundclaudeerickzhao
authored
ci: optimize Windows builds with faster D:\ drive (#4038)
* ci: optimize Windows builds with faster D:\ drive Configure Windows runners to use the faster D:\ drive for: - Yarn global data folder (D:\yarn-data) - TEMP directory (D:\fast-temp) This improves build performance on Windows GitHub Actions runners by utilizing the faster D:\ drive instead of the default C:\ drive. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> * ci: ensure TEMP directory exists before setting Update the Windows TEMP directory configuration to create D:\fast-temp before setting the TEMP environment variable. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Erick Zhao <[email protected]>
1 parent 35cabfe commit 0e6ec85

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,18 @@ jobs:
9090
with:
9191
python-version: 3.11
9292

93+
- name: Set Yarn global folder for Windows
94+
if: runner.os == 'Windows'
95+
shell: bash
96+
run: yarn config set globalFolder "D:\\yarn-data"
97+
98+
- name: Set TEMP for Windows
99+
if: runner.os == 'Windows'
100+
shell: bash
101+
run: |
102+
mkdir -p /d/fast-temp
103+
echo "TEMP=D:\\fast-temp" >> $GITHUB_ENV
104+
93105
- name: Install dependencies
94106
run: yarn install --immutable
95107

@@ -165,6 +177,18 @@ jobs:
165177
with:
166178
python-version: 3.11
167179

180+
- name: Set Yarn global folder for Windows
181+
if: runner.os == 'Windows'
182+
shell: bash
183+
run: yarn config set globalFolder "D:\\yarn-data"
184+
185+
- name: Set TEMP for Windows
186+
if: runner.os == 'Windows'
187+
shell: bash
188+
run: |
189+
mkdir -p /d/fast-temp
190+
echo "TEMP=D:\\fast-temp" >> $GITHUB_ENV
191+
168192
- name: Install dependencies
169193
run: yarn install --immutable
170194

0 commit comments

Comments
 (0)