cache pipelines

This commit is contained in:
Mitchell Marino 2022-12-18 21:04:23 -06:00
parent f0d44fd48c
commit bd28d00d12
3 changed files with 12 additions and 5 deletions

View File

@ -4,6 +4,10 @@ image_resource:
type: registry-image
source: {repository: rust}
# This should cache cargo audit
caches:
- path: "./.cargo/"
inputs:
- name: repo

View File

@ -4,15 +4,14 @@ image_resource:
type: registry-image
source: {repository: rust}
# This should cache rustfmt
caches:
- path: "./.rustup/"
inputs:
- name: repo
run:
# path: cargo
# args: ["fmt", "--", "--check"]
# dir: "repo"
# TODO: create an image with cargo check already installed
path: sh
args:
- -exc

View File

@ -4,6 +4,10 @@ image_resource:
type: registry-image
source: {repository: rust}
# This should cache clippy
caches:
- path: "./.rustup/"
inputs:
- name: repo