try to cache rust

This commit is contained in:
Mitchell Marino 2023-01-11 23:13:48 -06:00
parent a404b9aabf
commit c58edbfa21
2 changed files with 13 additions and 5 deletions

View File

@ -4,10 +4,14 @@ image_resource:
type: registry-image
source: {repository: rust}
# This should cache cargo audit
# move cargo's config directory to be ./.cargo-config/ and cache it
params:
CARGO_HOME: "./.cargo-config"
caches:
- path: "./.cargo/"
- path: "./target/"
- path: "./target"
- path: "./.cargo-config"
inputs:
- name: repo

View File

@ -4,9 +4,13 @@ image_resource:
type: registry-image
source: {repository: rust}
# move cargo's config directory to be ./.cargo-config/ and cache it
params:
CARGO_HOME: "./.cargo-config"
caches:
- path: "~/.cargo/"
- path: "~/target/"
- path: "./target"
- path: "./.cargo-config"
inputs:
- name: repo