Skip to content

Commit

Permalink
allow the compilation of sccache without any features (only local build)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvestre committed Feb 20, 2024
1 parent 5dc97c6 commit 0ffba96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,9 @@ jobs:
rustc: nightly
allow_failure: true
extra_args: --features=unstable
- os: ubuntu-20.04
rustc: nightly
extra_args: --no-default-features
- os: ubuntu-22.04
- os: macOS-11
# M1 CPU
Expand Down
4 changes: 3 additions & 1 deletion src/cache/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,9 @@ pub fn storage_from_config(
return Ok(Arc::new(storage));
}
#[allow(unreachable_patterns)]
_ => bail!("cache type is not enabled"),
// if we build only with `cargo build --no-default-features`
// we only want to use sccache with a local cache (no remote storage)
_ => {}
}
}

Expand Down

0 comments on commit 0ffba96

Please sign in to comment.