Skip to content

Commit 33a4578

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 a518d50 commit 33a4578

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
@@ -637,15 +637,27 @@ jobs:
637637
steps:
638638
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
639639
- uses: ./.github/actions/clone
640+
641+
- name: Setup Dev Drive
642+
uses: samypr100/setup-dev-drive@30f0f98ae5636b2b6501e181dfb3631b9974818d # v4.0.0
643+
with:
644+
drive-size: 12GB
645+
drive-format: ReFS
646+
env-mapping: |
647+
CARGO_HOME,{{ DEV_DRIVE }}/.cargo
648+
RUSTUP_HOME,{{ DEV_DRIVE }}/.rustup
649+
640650
- uses: oxc-project/setup-rust@23f38cfb0c04af97a055f76acee94d5be71c7c82 # v1.0.16
651+
with:
652+
target-dir: ${{ format('{0}/target', env.DEV_DRIVE) }}
641653

642654
- name: Build vp-setup.exe
643655
shell: bash
644656
run: cargo build --release -p vite_installer
645657

646658
- name: Install via vp-setup.exe (silent)
647659
shell: pwsh
648-
run: ./target/release/vp-setup.exe -y
660+
run: ${{ format('{0}/target/release/vp-setup.exe', env.DEV_DRIVE) }} -y
649661
env:
650662
VP_VERSION: alpha
651663

0 commit comments

Comments
 (0)