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 type: registry-image
source: {repository: rust} 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: params:
CARGO_HOME: "./.cargo-config" CARGO_HOME: "./.cargo-config"
RUSTUP_HOME: "./.rustup-config"
caches: caches:
- path: "./repo/target" - path: "./repo/target"
- path: "./repo/.cargo-config" - path: "./repo/.cargo-config"
- path: "./repo/.rustup-config"
inputs: inputs:

View File

@ -4,9 +4,10 @@ image_resource:
type: registry-image type: registry-image
source: {repository: rust} 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: params:
CARGO_HOME: "./.cargo-config" CARGO_HOME: "./.cargo-config"
RUSTUP_HOME: "./.rustup-config"
caches: caches:
- path: "./repo/target" - path: "./repo/target"

View File

@ -4,9 +4,15 @@ image_resource:
type: registry-image type: registry-image
source: {repository: rust} 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: caches:
- path: "./.rustup/" - path: "./repo/target"
- path: "./repo/.cargo-config"
- path: "./repo/.rustup-config"
inputs: inputs:
- name: repo - name: repo

View File

@ -4,11 +4,15 @@ image_resource:
type: registry-image type: registry-image
source: {repository: rust} 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: caches:
- path: "./.rustup/" - path: "./repo/target"
- path: "./.cargo/" - path: "./repo/.cargo-config"
- path: "./target/" - path: "./repo/.rustup-config"
inputs: inputs:
- name: repo - name: repo

View File

@ -4,9 +4,10 @@ image_resource:
type: registry-image type: registry-image
source: {repository: rust} 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: params:
CARGO_HOME: "./.cargo-config" CARGO_HOME: "./.cargo-config"
RUSTUP_HOME: "./.rustup-config"
caches: caches:
- path: "./repo/target" - path: "./repo/target"