Skip to content

Conversation

@benjamin051000
Copy link
Contributor

Right now CI rebuilds from scratch for each step. It takes way longer than it needs to. This action supposedly will cache the build artifacts so they can be re-used each step.

Note

Github Copilot made this... so who knows if it actually works.

To Do

  • Consider running cargo build --all-features or something first, then run everything else afterwards? What's the most optimal way?

Github Copilot made this... so who knows if it actually works.
@benjamin051000 benjamin051000 changed the title Add cache action to preserve build artifacts. CI: Add cache action to preserve build artifacts. Apr 21, 2025
@louis-e
Copy link
Owner

louis-e commented Apr 26, 2025

That's such a good idea, I didn't know Github Actions CI support caching! :)

@louis-e louis-e merged commit cca4d1a into louis-e:main Apr 26, 2025
@louis-e
Copy link
Owner

louis-e commented Apr 26, 2025

I will address the --all-features in a follow up commit

@benjamin051000 benjamin051000 deleted the ci-cache branch April 27, 2025 02:31
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