From 62d01ee7a9ae759ddfb21b758a1b4750311c6726 Mon Sep 17 00:00:00 2001 From: MarkosTh09 Date: Wed, 2 Aug 2023 21:01:35 +0300 Subject: [PATCH] ci: add caching --- .github/workflows/publish.yml | 2 ++ .github/workflows/test.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 5d70143..94a011c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,6 +7,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - name: Cache build + uses: Swatinem/rust-cache@v2 - name: Publish to crates.io run: cargo publish env: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5aab85d..22dd315 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,6 +12,8 @@ jobs: toolchain: nightly components: miri, clippy override: true + - name: Cache build + uses: Swatinem/rust-cache@v2 - name: Lint code run: cargo clippy - name: Run tests