mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-07-08 18:06:30 +00:00
[PR #1944] ci(windows): Optimize Windows build workflow for faster CI #2750
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/1944
State: closed
Merged: Yes
Summary
Major optimizations to reduce Windows build time from ~45 minutes to ~8 minutes (with warm cache):
Changes
Single consolidated job - Previously two parallel jobs (Release/Debug) duplicated the entire 34-minute vcpkg install. Now builds both configurations sequentially in one job, sharing all cached dependencies.
lukka/run-vcpkg action - Replaces manual git clone + bootstrap with the official vcpkg action that has built-in caching and better handling.
Cache vcpkg installed packages - Separately cache the
installed/directory (239 MB) with hash-based keys. On cache hit, the 35-minute vcpkg install is completely skipped.Cargo caching - Add caching for Rust registry and build artifacts (277 MB), similar to the Linux build workflow.
Updated Rust toolchain action - Replace deprecated
actions-rs/toolchainwithdtolnay/rust-toolchain.Measured Results
Timing Breakdown (warm cache run)
Cache Storage (GitHub Actions)
vcpkg-installed-*: 239.4 MBWindows-cargo-registry-*: 276.7 MBTest plan
🤖 Generated with Claude Code