Skip to content

Allow usage of cargo-codspeed with sccache #55

Open
@danking

Description

@danking

Hey all,

I want to use codspeed to benchmark spiraldb/vortex. You can see the code for the workflow here: https://github.com/spiraldb/vortex/pull/848/files . The setup-rust action sets three environment variables which I've confirmed are set in the GitHub Action step that runs cargo codspeed build:

SCCACHE_GHA_ENABLED=true
RUSTC_WRAPPER=sccache
CARGO_INCREMENTAL=0

We also have sccache enabled for our CI build. You can see the logs for the CI build on the PR that adds codspeed here. It compiles much faster (~4 minutes, including running tests etc.). In contrast, cargo codspeed build takes ~20 minutes. Have I done something wrong? How do I properly convey the RUSTC_WRAPPER information to cargo when it is run by CodSpeed? (Docs about RUSTC_WRAPPER and sccache are here).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions