Skip to content

ci: Tier 2 Windows reuses compiles with ccache and a vcpkg binary cache - #1040

Merged
zackees merged 2 commits into
masterfrom
ci/1038-tier2-windows-ccache
Oct 16, 2026
Merged

zackees merged 2 commits into
masterfrom
ci/1038-tier2-windows-ccache

Conversation

@zackees

@zackees zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member

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-x64 preset sets ENABLE_CCACHE=ON, and cmake/windows/compilerconfig.cmake copies ccache in as cl.exe (MSBuild CLToolExe) whenever ccache is on PATH, as windows-build already does. In rust-tier2, on Windows only:

  • restore windows-tier2-ccache-<sha> (restore-keys prefix), save on master pushes;
  • install the same pinned ccache 4.14.1 (sha256-checked) as windows-build;
  • VCPKG_BINARY_SOURCES=clear;files,<workspace>/.vcpkg-bin,readwrite with actions/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.

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
zackees enabled auto-merge October 16, 2026 08:21
@zackees
zackees added this pull request to the merge queue Oct 16, 2026
@zackees zackees added the ci-full Run every CI job on this PR, including the release-gating OBS app builds and Flatpak label Oct 16, 2026
Merged via the queue into master with commit 53551c6 Oct 16, 2026
20 checks passed
@zackees
zackees deleted the ci/1038-tier2-windows-ccache branch October 26, 2026 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-full Run every CI job on this PR, including the release-gating OBS app builds and Flatpak

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

ci: Tier 2 Windows compiles cold every run (no ccache, cmocka rebuilt by vcpkg)

1 participant