Skip to content

ci: set the CARGO_BUILD_TARGET to reuse same cache #1191

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ahayzen-kdab
Copy link
Collaborator

@ahayzen-kdab ahayzen-kdab commented Feb 17, 2025

Requires #1192

Copy link

codecov bot commented Feb 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (96d3233) to head (c8f8de4).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1191   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           75        75           
  Lines        12772     12772           
=========================================
  Hits         12772     12772           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ahayzen-kdab ahayzen-kdab force-pushed the ci-share-cmake-cargo-build branch 3 times, most recently from c1cf039 to 2f73836 Compare February 18, 2025 14:37
@ahayzen-kdab ahayzen-kdab changed the title ctest: use same target folder for build rerun test ci: set the CARGO_BUILD_TARGET to reuse same cache Feb 18, 2025
@ahayzen-kdab ahayzen-kdab force-pushed the ci-share-cmake-cargo-build branch from 2f73836 to ca785db Compare February 18, 2025 14:56
Corrosion sets the --target flag to rustc which means
that crates are built in the target sub folder. Ensure
that other places that call cargo directly reuse this
same folder by setting CARGO_BUILD_TARGET.
@ahayzen-kdab ahayzen-kdab force-pushed the ci-share-cmake-cargo-build branch from ca785db to 7417574 Compare May 30, 2025 05:34
This is likely not required anymore.
@@ -422,6 +429,8 @@ jobs:
SCCACHE_CACHE_SIZE: 600M
SCCACHE_LOG: debug
SCCACHE_ERROR_LOG: ${{ matrix.sccache_log_path }}
# Ensure that we share the same target sub folder
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Wonder how much sharing there can be between the builds, or if they are ultimately different anyway and need separate folders/caches. (cmake vs cargo)

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.

1 participant