From bd28d00d1268d8ba818947ed84ab9ef0cde24102 Mon Sep 17 00:00:00 2001 From: Mitchell Marino Date: Sun, 18 Dec 2022 21:04:23 -0600 Subject: [PATCH] cache pipelines --- ci/audit.yml | 4 ++++ ci/check-fmt.yml | 9 ++++----- ci/lint.yml | 4 ++++ 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ci/audit.yml b/ci/audit.yml index 257ee8e..10b02df 100644 --- a/ci/audit.yml +++ b/ci/audit.yml @@ -4,6 +4,10 @@ image_resource: type: registry-image source: {repository: rust} +# This should cache cargo audit +caches: +- path: "./.cargo/" + inputs: - name: repo diff --git a/ci/check-fmt.yml b/ci/check-fmt.yml index 676d609..ca12cf5 100644 --- a/ci/check-fmt.yml +++ b/ci/check-fmt.yml @@ -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 diff --git a/ci/lint.yml b/ci/lint.yml index 3d0acc9..8a00dff 100644 --- a/ci/lint.yml +++ b/ci/lint.yml @@ -4,6 +4,10 @@ image_resource: type: registry-image source: {repository: rust} +# This should cache clippy +caches: +- path: "./.rustup/" + inputs: - name: repo