From 7bd3610c5cabc91ef9ab81f21ba7d85dee3175e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20M=C3=BCller?= Date: Sun, 29 Jun 2025 14:08:22 +0200 Subject: [PATCH] Add caching MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- .forgejo/workflows/ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index d926944..416fb30 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -27,6 +27,16 @@ jobs: - uses: actions/checkout@v4 - name: Install Rust uses: https://github.com/dtolnay/rust-toolchain@1.88 + with: + components: clippy + - name: ⚡ Cache + uses: actions/cache@v2 + with: + path: | + ~/.cargo/registry + ~/.cargo/git + target + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} - run: cargo clippy -- -D warnings - run: cargo build --verbose - run: cargo test --verbose