Skip to content

ci: cache ~/.conan2 in build workflow - #84

Merged
Joseph Borodach (JosephBorodach) merged 2 commits into
mainfrom
ci-cache-conan
Aug 11, 2026
Merged

ci: cache ~/.conan2 in build workflow#84
Joseph Borodach (JosephBorodach) merged 2 commits into
mainfrom
ci-cache-conan

Conversation

@JosephBorodach

@JosephBorodach Joseph Borodach (JosephBorodach) commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Cache ~/.conan2 on both jobs in build.yml, keyed on conanfile.py - matches what i've done in ensenso/zivid/zed/realsense.

Nix matrix uses matrix.os so ubuntu-22.04, ubuntu-22.04-arm, and macos-latest get separate caches.

Expected: warm runs drop from ~80 min to ~10–15 min. Cold runs and SDK-bump runs unchanged.

You can see from the ci time went from 1hr+ to 7min

@seanavery Sean Pollock (seanavery) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, ci level cache is reasonable

Longer term I think we should push for CI to pull prebuilt binaries directly from the conan remote instead of build-and-cache.

I checked viamconan: the viam-cpp-sdk/0.38.1 binaries exist for all platforms, but looks like they're stranded under a non-latest recipe revision.

lia (@lia-viam) Potentially something with the separate cpp-sdk windows upload interfering with the latest revision...

@JosephBorodach
Joseph Borodach (JosephBorodach) merged commit 7fa563f into main Aug 11, 2026
5 checks passed
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