Skip to content

Cache vcpkg dependencies in MSVC build - #426

Merged
evanmiller merged 1 commit into
WizardMac:devfrom
hpoettker:speed-up-msvc
Nov 2, 2026
Merged

evanmiller merged 1 commit into
WizardMac:devfrom
hpoettker:speed-up-msvc

Conversation

@hpoettker

@hpoettker hpoettker commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Background

I think it's good that #401 and #410 moved the Windows Visual Studio build from AppVeyor to GitHub Actions. It reduces complexity and lets the build also run on forks without an AppVeyor setup.

But with runtimes above 10 minutes for every run, the build is currently way too slow.

Proposal

I've added a caching step for the vcpkg binaries.

The image versions of the Windows runners are surprisingly diverse. So the cache takes a few runs to get warm. But on a cache hit the build runs in under two minutes: https://github.com/hpoettker/ReadStat/actions/runs/41507166556/job/125489304309

I've also replaced ilammy/msvc-dev-cmd, which hasn't seen a commit in the last two years, with microsoft/setup-msbuild.

Note

The build may fail as MacOS runners are currently in high demand. If it should fail due to that I'll trigger a rebuild with an empty amended commit at a later point.

@hpoettker

hpoettker commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor Author

The build is now successful as a sufficient number of MacOS runners is now available.

And the build windows_msvc took 1m 49s!

@evanmiller
evanmiller merged commit 79816b6 into WizardMac:dev Nov 2, 2026
14 checks passed
@hpoettker
hpoettker deleted the speed-up-msvc branch November 2, 2026 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants