Skip to content

Faster CI (cached deps & wild linker)#1583

Open
joshuamegnauth54 wants to merge 1 commit into
pop-os:masterfrom
joshuamegnauth54:faster-ci
Open

Faster CI (cached deps & wild linker)#1583
joshuamegnauth54 wants to merge 1 commit into
pop-os:masterfrom
joshuamegnauth54:faster-ci

Conversation

@joshuamegnauth54

@joshuamegnauth54 joshuamegnauth54 commented Jan 30, 2026

Copy link
Copy Markdown
Contributor

This improves CI a bit by using Wild, a linker written in Rust that is significantly faster than gold and lld, and caching dependencies.

Dependencies are cached based on the lock file. In other words, deps are only rebuilt if they need to be rebuilt (i.e. if the lock files changes).

Besides that, I removed the explicit rustup call in favor of an action. This prevents needlessly reinstalling Rust in CI (which didn't happen anyway; but you know, just in case).

Finally, unrelated to everything else, I enabled logs for the tests. If a test fails, the logs may prove helpful.


Draft since I want it to run first to make sure it works...which it should because I'm using the same CI elsewhere. 😆

This improves CI a bit by using Wild, a linker written in Rust that is
significantly faster than gold and lld, and caching dependencies.

Dependencies are cached based on the lock file. In other words, deps are
only rebuilt if they need to be rebuilt (i.e. if the lock files
changes).

Besides that, I removed the explicit rustup call in favor of an action.
This prevents needlessly reinstalling Rust in CI (which didn't happen
anyway; but you know, just in case).

Finally, unrelated to everything else, I enabled logs for the tests. If
a test fails, the logs may prove helpful.
@joshuamegnauth54 joshuamegnauth54 marked this pull request as ready for review January 30, 2026 15:57
@joshuamegnauth54

Copy link
Copy Markdown
Contributor Author

It looks like builds are ~30 seconds faster. This first run had to build dependencies, so the subsequent runs should be even faster.

@leviport leviport requested review from a team January 30, 2026 16:24
@jackpot51

Copy link
Copy Markdown
Member

I don't think it is worth using a different linker just to save this time - what if it produces different results?

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