update cache dirs
This commit is contained in:
parent
c72dbc81eb
commit
24f11fe4ee
@ -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:
|
||||
|
||||
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
12
ci/lint.yml
12
ci/lint.yml
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user