Skip to content

Commit 5aafb8e

Browse files
committed
perf(ci): add Dev Drive setup to test-vp-setup-exe for faster Windows builds
Use setup-dev-drive with ReFS (matching ci.yml) to speed up cargo build. Windows Defender skips ReFS dev drives, which significantly reduces build times on GitHub Actions Windows runners.
1 parent d3cfc64 commit 5aafb8e

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/test-standalone-install.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,15 +717,27 @@ jobs:
717717
steps:
718718
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
719719
- uses: ./.github/actions/clone
720+
721+
- name: Setup Dev Drive
722+
uses: samypr100/setup-dev-drive@30f0f98ae5636b2b6501e181dfb3631b9974818d # v4.0.0
723+
with:
724+
drive-size: 12GB
725+
drive-format: ReFS
726+
env-mapping: |
727+
CARGO_HOME,{{ DEV_DRIVE }}/.cargo
728+
RUSTUP_HOME,{{ DEV_DRIVE }}/.rustup
729+
720730
- uses: oxc-project/setup-rust@23f38cfb0c04af97a055f76acee94d5be71c7c82 # v1.0.16
731+
with:
732+
target-dir: ${{ format('{0}/target', env.DEV_DRIVE) }}
721733

722734
- name: Build vp-setup.exe
723735
shell: bash
724736
run: cargo build --release -p vite_installer
725737

726738
- name: Install via vp-setup.exe (silent)
727739
shell: pwsh
728-
run: ./target/release/vp-setup.exe -y
740+
run: ${{ format('{0}/target/release/vp-setup.exe', env.DEV_DRIVE) }} -y
729741
env:
730742
VP_VERSION: alpha
731743

0 commit comments

Comments
 (0)