Skip to content

ci: fix CARGO_HOME caching

Guillaume Desmottes requested to merge gdesmott/gstreamer-rs:fix-cache into master

CARGO_HOME's semantic depends on when it's used in the pipeline:

  • it's the install prefix when installing Cargo
  • it's the crate cache location when building jobs

env.sh is sourced at the start of all jobs and was overidding the CARGO_HOME path defined in the CI template for caching. Fix this by moving the prefix install path to install-rust.sh.

Merge request reports