Hello everyone,
I created a simple Rust hello-world project https://gitlab.com/yvan-sraka/rust-cache-example/ with this .gitlab-ci.yml
:
image: "rust:latest"
cache:
key:
files:
- Cargo.lock
paths:
- /usr/local/cargo/bin
- /usr/local/cargo/registry/index
- /usr/local/cargo/registry/cache
- /usr/local/cargo/git/db
- ./target
before_script:
- echo $RUSTUP_HOME # /usr/local/rustup
- echo $CARGO_HOME # /usr/local/cargo
- echo $PATH # /usr/local/cargo/bin:$PATH
build:
script:
- cargo build
But it fail to store build cache https://gitlab.com/yvan-sraka/rust-cache-example/-/jobs/1661084920 (for a reason I didn’t get yet) :
Creating cache default...
WARNING: /usr/local/cargo/bin: no matching files
WARNING: /usr/local/cargo/registry/index: no matching files
WARNING: /usr/local/cargo/registry/cache: no matching files
WARNING: /usr/local/cargo/git/db: no matching files
./target: found 35 matching files and directories
Uploading cache.zip to https://storage.googleapis.com/gitlab-com-runners-cache/project/30276400/default
Created cache
Does anyone have any guess of what happened here?!
Thanks, Yvan