summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/deploy.yml3
-rw-r--r--.github/workflows/tests.yml4
2 files changed, 7 insertions, 0 deletions
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index 2ad1eae..3b9cb50 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -43,6 +43,9 @@ jobs:
- name: Setup | Checkout
uses: actions/checkout@v3
+ # Cache files between builds
+ - uses: Swatinem/rust-cache@v1
+
- name: Setup | Rust
uses: actions-rs/toolchain@v1
with:
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 8abcc60..9675a62 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -23,6 +23,8 @@ jobs:
toolchain: ${{ matrix.rust }}
override: true
+ - uses: Swatinem/rust-cache@v2
+
- name: tests
uses: actions-rs/cargo@v1
with:
@@ -40,6 +42,8 @@ jobs:
components: rustfmt, clippy
override: true
+ - uses: Swatinem/rust-cache@v2
+
- name: fmt
run: cargo fmt --all -- --check