update cache dirs

This commit is contained in:
Mitchell Marino 2023-01-11 23:38:21 -06:00
parent c72dbc81eb
commit 24f11fe4ee
5 changed files with 23 additions and 9 deletions

View File

@ -4,13 +4,15 @@ image_resource:
type: registry-image
source: {repository: rust}
# move cargo's config directory to be ./.cargo-config/ and cache it
# move rust's config directories to be in the current directory, so they can be cached.
params:
CARGO_HOME: "./.cargo-config"
RUSTUP_HOME: "./.rustup-config"
caches:
- path: "./repo/target"
- path: "./repo/.cargo-config"
- path: "./repo/.rustup-config"
inputs:

View File

@ -4,9 +4,10 @@ image_resource:
type: registry-image
source: {repository: rust}
# move cargo's config directory to be ./.cargo-config/ and cache it
# move rust's config directories to be in the current directory, so they can be cached.
params:
CARGO_HOME: "./.cargo-config"
RUSTUP_HOME: "./.rustup-config"
caches:
- path: "./repo/target"

View File

@ -4,9 +4,15 @@ image_resource:
type: registry-image
source: {repository: rust}
# This should cache rustfmt
# move rust's config directories to be in the current directory, so they can be cached.
params:
CARGO_HOME: "./.cargo-config"
RUSTUP_HOME: "./.rustup-config"
caches:
- path: "./.rustup/"
- path: "./repo/target"
- path: "./repo/.cargo-config"
- path: "./repo/.rustup-config"
inputs:
- name: repo

View File

@ -4,11 +4,15 @@ image_resource:
type: registry-image
source: {repository: rust}
# This should cache clippy
# move rust's config directories to be in the current directory, so they can be cached.
params:
CARGO_HOME: "./.cargo-config"
RUSTUP_HOME: "./.rustup-config"
caches:
- path: "./.rustup/"
- path: "./.cargo/"
- path: "./target/"
- path: "./repo/target"
- path: "./repo/.cargo-config"
- path: "./repo/.rustup-config"
inputs:
- name: repo

View File

@ -4,9 +4,10 @@ image_resource:
type: registry-image
source: {repository: rust}
# move cargo's config directory to be ./.cargo-config/ and cache it
# move rust's config directories to be in the current directory, so they can be cached.
params:
CARGO_HOME: "./.cargo-config"
RUSTUP_HOME: "./.rustup-config"
caches:
- path: "./repo/target"