Skip to content

GHA: Cache boost checkout#241

Draft
Flamefire wants to merge 4 commits intomasterfrom
cache-boost
Draft

GHA: Cache boost checkout#241
Flamefire wants to merge 4 commits intomasterfrom
cache-boost

Conversation

@Flamefire
Copy link
Copy Markdown
Collaborator

Instead of cloning the Boost main repository and later potentially many submodules (by depinst.py) we can cache the last checkout.

On any changes the checkout-and-pull should update it to the appropriate version.

Closes #240

@Flamefire Flamefire force-pushed the cache-boost branch 7 times, most recently from ee676cc to 5aa75a4 Compare November 26, 2024 13:24
@Flamefire
Copy link
Copy Markdown
Collaborator Author

@jeking3 This seems to work now. Can you take a look? You can copy that to your repo once this is merged as the change to the script is required because the b2 binary will also be cached and might not always work.

Flamefire and others added 4 commits May 1, 2026 11:25
Instead of cloning the Boost main repository and later potentially many
submodules (by `depinst.py`) we can cache the last checkout.
On any changes the checkout-and-pull should update it to the appropriate
version.
When we copy the whole boost-root AFTER the build(s) it will contain
also build artefacts such as the bin.v2 folder.
When restoring that later B2 might skip parts of the build although it
should not.
Make a copy after the initial setup & bootstrap.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (734e1fd) to head (48521ab).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #241   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            3         3           
  Lines           24        24           
  Branches        11        11           
=========================================
  Hits            24        24           

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 734e1fd...48521ab. Read the comment docs.

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

@Flamefire Flamefire marked this pull request as draft May 1, 2026 09:57
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.

Can we use GHA caching of the checked-out code and dependencies to reduce build burden?

1 participant