Repository navigation
ci: Tier 2 Windows reuses compiles with ccache and a vcpkg binary cache - #1040
Merged
Merged
Conversation
Fails: rust-tier2 neither restores nor installs ccache on Windows, and vcpkg rebuilds cmocka from source every run.
…he (Fixes #1038) Tier 2 Windows compiled libobs and the cmocka tests twice from scratch, about 5.5 of its 9.1 min, and built cmocka through vcpkg for 37 s. The windows-ci-x64 preset already enables ccache whenever it is on PATH; the job now restores a Tier 2 ccache, installs the same pinned ccache 4.14.1 as windows-build, saves on master, and gives vcpkg a binary cache.
zackees
enabled auto-merge
October 16, 2026 08:21
11 of 15 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #1038. Part of #930 / #427 (item 3).
Tier 2 Windows (run 38869769397), 9.1 min: vcpkg builds cmocka 47 s (37 s compiling), OFF configure+build 2 min 52 s, ON configure+build 2 min 42 s, ctest 40 s each. Both builds compile cold.
The
windows-ci-x64preset setsENABLE_CCACHE=ON, andcmake/windows/compilerconfig.cmakecopies ccache in ascl.exe(MSBuildCLToolExe) wheneverccacheis on PATH, aswindows-buildalready does. Inrust-tier2, on Windows only:windows-tier2-ccache-<sha>(restore-keys prefix), save on master pushes;windows-build;VCPKG_BINARY_SOURCES=clear;files,<workspace>/.vcpkg-bin,readwritewithactions/cache, so cmocka is restored, not rebuilt.RED f9acd63:
ci/test_tier2_windows_cache.py, 3 failures + 1 error. GREEN e0e4571: 4/4;ci/suite green.There's no Windows host here, so this PR's Windows Tier 2 job is the check. It will be cold, since no cache is saved yet; the saving shows from the first run after a master push saves the cache. Expected: about 9 min down to about 4 min warm.