From 053efb4aaf54e732239932b13cc99ae9e005c875 Mon Sep 17 00:00:00 2001 From: zach Date: Wed, 20 May 2026 05:23:56 +0200 Subject: [PATCH] reintroduce cargo caching --- .gitea/workflows/lint-rust.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.gitea/workflows/lint-rust.yml b/.gitea/workflows/lint-rust.yml index 44a4fcb..dc01c1d 100644 --- a/.gitea/workflows/lint-rust.yml +++ b/.gitea/workflows/lint-rust.yml @@ -7,11 +7,28 @@ jobs: lint-format: runs-on: alpine container: node:26-alpine + env: + CARGO_HOME: ${{ github.workspace }}/.cargo steps: - name: Checkout uses: actions/checkout@v4 + - name: Cache cargo packages + uses: actions/cache@v4 + env: + cache-name: cache-cargo-packages + with: + path: | + .cargo/registry + .cargo/git + target + key: rust-${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/Cargo.lock') }} + restore-keys: | + rust-${{ runner.os }}-build-${{ env.cache-name }}- + rust-${{ runner.os }}-build- + rust- + - name: Install tools run: | apk add --no-cache \