Skip to content
This repository has been archived by the owner on Feb 28, 2021. It is now read-only.

Improve build cache on CI #408

Closed
NunoAlexandre opened this issue Apr 29, 2020 · 4 comments
Closed

Improve build cache on CI #408

NunoAlexandre opened this issue Apr 29, 2020 · 4 comments
Assignees

Comments

@NunoAlexandre
Copy link
Contributor

Changes to, say, the README file will trigger a complete new build. We want to explore ways of caching the binaries and only rebuild them if the targets composing it have changed. For example, if a commit changes the CLI alone, only the CLI should be rebuilt and not the whole project and the node binary.

@geigerzaehler
Copy link

The caching works pretty well on a local machine because it uses timestamps. If you update only the CLI and rebuild cargo can figure out that only the CLI changed and rebuild only that. On CI this information is not available through timestamps though since we do a fresh checkout at the start of the build. I don’t have an idea for a solution to this.

@CodeSandwich
Copy link
Contributor

CodeSandwich commented Apr 29, 2020

Unfortunately you're right, files are fingerprinted with their date and not with their content. Hopefully at some point it may change: rust-lang/cargo#6529

@geigerzaehler
Copy link

Is there something actionable in the ticket? If the cargo issue is solved we basically get this for free. Unless we have other options I’d vote to close this.

@NunoAlexandre
Copy link
Contributor Author

Closing it 👍

@NunoAlexandre NunoAlexandre self-assigned this May 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants