From a075bdfe57826a8ddb583e887271b612271c1d7d Mon Sep 17 00:00:00 2001 From: "Champlin, Saji" Date: Thu, 1 Aug 2024 10:09:47 -0500 Subject: [PATCH] add rust build caching --- .forgejo/workflows/cargo.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/cargo.yml b/.forgejo/workflows/cargo.yml index 5e0be28..aa0ce2e 100644 --- a/.forgejo/workflows/cargo.yml +++ b/.forgejo/workflows/cargo.yml @@ -8,15 +8,17 @@ jobs: steps: - uses: actions/checkout@v4 - uses: https://github.com/dtolnay/rust-toolchain@stable + - uses: https://github.com/Swatinem/rust-cache@v2 - run: cargo test --all-features bench: name: Run Benchmarks runs-on: ubuntu-latest steps: - - uses: https://github.com/dtolnay/rust-toolchain@stable - uses: actions/checkout@v4 with: fetch-depth: 2 + - uses: https://github.com/dtolnay/rust-toolchain@stable + - uses: https://github.com/Swatinem/rust-cache@v2 - run: git checkout HEAD~ - run: cargo bench - run: git checkout master