ci: scope conan cache key by build type in build_debug.yml#776
Merged
Conversation
The Debug workflow shared a conan cache key with the Release build
(`conan-${{ runner.os }}-amd64-<hash>`). Only one job saves a given key,
and the permissive `restore-keys` fallback let Debug pull in a Release-
populated cache that doesn't contain its debug-built dependencies — so
every Debug run rebuilt deps from source.
Tag the Debug cache key (and matching restore-keys) with `-debug-` so
the two builds maintain independent caches.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
Author
|
@codex review |
samiura
approved these changes
May 18, 2026
LCOV of commit
|
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.
Summary
build_debug.ymlused the same conan cache key as the Release pipeline (conan-${{ runner.os }}-amd64-<hash>).actions/cache@v5saves only the first cache populated under a given key; the permissiverestore-keys: conan-${{ runner.os }}-amd64-fallback then let Debug runs restore a Release-populatedbuild/p/that lacks debug-built dependencies.-debug-so the two pipelines maintain independent caches.Test plan
build-develop.yml) cache behavior unchanged.