Skip to content
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

proposal: Use sccache to replace rust-cache #1424

Closed
Xuanwo opened this issue Jan 23, 2023 · 3 comments · Fixed by #1425
Closed

proposal: Use sccache to replace rust-cache #1424

Xuanwo opened this issue Jan 23, 2023 · 3 comments · Fixed by #1425
Labels
enhancement New feature or request

Comments

@Xuanwo
Copy link
Contributor

Xuanwo commented Jan 23, 2023

Sccache now has the native GHA Cache services support, which means it can access cache from/to the GHA cache services directly.

By adopting sccache we can make our build faster:

  • sccache only read/write needed caches during compile.
  • sccache can reuse cache even when Cargo.lock changed.
  • sccache can share cache over different workflows.

Here is my test over Test (ubuntu-laster, 3.11) on my fork:

Current main branch (with rust-cache):

https://github.com/PyO3/maturin/actions/runs/3984744042/jobs/6831307652

  • Test build: Finished test [unoptimized + debuginfo] target(s) in 3m 20s
  • Whole workflow

image

First time run with sccache

  • Test build: Finished test [unoptimized + debuginfo] target(s) in 3m 50s

Second time run with sccache

https://github.com/Xuanwo/maturin/actions/runs/3988689309/jobs/6840397892

  • Test build: Finished test [unoptimized + debuginfo] target(s) in 2m 14s
  • Whole workflow

image

@Xuanwo Xuanwo added the enhancement New feature or request label Jan 23, 2023
@messense
Copy link
Member

Thanks! I'd like to try it on bors runs in pull request, it'll spawn lots of concurrent workflow jobs, let's see how it performs.

@Xuanwo
Copy link
Contributor Author

Xuanwo commented Jan 24, 2023

I'd like to try it on bors runs in pull request, it'll spawn lots of concurrent workflow jobs, let's see how it performs.

Hi, I'm not familiar with bors, can you tell me how to get this work started?

@messense
Copy link
Member

Just open a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants