Skip to content

Sccache doesn't seem to work in CI #935

@Kailai-Wang

Description

@Kailai-Wang

Context

I notice that sccache doesn't seem to take effect, an example: https://github.com/litentry/litentry-parachain/actions/runs/3405980852

Even if I re-run the job without changing anything, where I expect the run-cargo-runtime-tests to complete quickly, it still did a full compilation.

Strangely, the cargo registry and sccache cache were restored successfully:

Cache restored successfully
Cache restored from key: cargo-7cca616f672081f386280a7525ace5640c511a4aebda45281f073c7e8c5e3007
Cache restored successfully
Cache restored from key: sccache-7cca616f672081f386280a7525ace5640c511a4aebda45281f073c7e8c5e3007

It just didn't get applied.

In the sccache stat, it showed:
image

Note the cache hit were all C/C++.

Once it's solved, the next step is to try to use sccache inside docker


✔️ Please set appropriate labels and assignees if applicable.

Metadata

Metadata

Assignees

Labels

D2-bugSomething isn't workingI3-highshould be completed within 5 working days

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions