From 376c77997163277871c01a73fb2bd175295aec26 Mon Sep 17 00:00:00 2001 From: Erick Zhao Date: Tue, 5 May 2026 09:38:54 -0700 Subject: [PATCH] build: use D:\ drive for Windows CI runners Redirect YARN_GLOBAL_FOLDER and TEMP to the faster D:\ scratch disk on GitHub Actions Windows runners, matching the approach used in Forge. Co-Authored-By: Claude --- .github/workflows/build.yml | 7 +++++++ .github/workflows/test.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a267d1f91d..4a9b414fcf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -33,6 +33,13 @@ jobs: with: node-version-file: .nvmrc cache: 'yarn' + - name: Use D:\\ drive for Windows + if: runner.os == 'Windows' + shell: bash + run: | + mkdir -p /d/fast-temp + echo "YARN_GLOBAL_FOLDER=D:\\yarn-data" >> $GITHUB_ENV + echo "TEMP=D:\\fast-temp" >> $GITHUB_ENV - name: Install dependencies run: yarn --immutable - run: yarn run contributors diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 82f54fb443..21117922fd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,6 +33,13 @@ jobs: with: node-version-file: .nvmrc cache: 'yarn' + - name: Use D:\\ drive for Windows + if: runner.os == 'Windows' + shell: bash + run: | + mkdir -p /d/fast-temp + echo "YARN_GLOBAL_FOLDER=D:\\yarn-data" >> $GITHUB_ENV + echo "TEMP=D:\\fast-temp" >> $GITHUB_ENV - name: Install dependencies run: yarn --immutable - run: yarn run contributors