From 64294d1c6a32717cc012580f802b07fdac36895d Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Mon, 13 Sep 2021 23:48:03 +0300 Subject: [PATCH] ci: add cache --- .github/workflows/ci.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26a5226f..2d1b73a3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -49,6 +49,9 @@ jobs: toolchain: stable override: true components: rustfmt, clippy + - uses: Swatinem/rust-cache@v1 + with: + cache-on-failure: true - name: cargo test run: | export PATH=$HOME/bin:$PATH @@ -93,6 +96,9 @@ jobs: toolchain: stable override: true components: rustfmt, clippy + - uses: Swatinem/rust-cache@v1 + with: + cache-on-failure: true - name: cargo test (Celo) run: | export PATH=$HOME/bin:$PATH @@ -111,6 +117,9 @@ jobs: toolchain: stable override: true components: rustfmt, clippy + - uses: Swatinem/rust-cache@v1 + with: + cache-on-failure: true - name: cargo fmt run: cargo fmt --all -- --check - name: cargo clippy @@ -135,6 +144,10 @@ jobs: profile: minimal override: true + - uses: Swatinem/rust-cache@v1 + with: + cache-on-failure: true + - name: Check uses: actions-rs/cargo@v1 with: @@ -196,6 +209,9 @@ jobs: toolchain: stable override: true components: rustfmt, clippy + - uses: Swatinem/rust-cache@v1 + with: + cache-on-failure: true - name: cargo test run: | export PATH=$HOME/bin:$PATH