From a198cb5c0a1d36a97ab5cf6239b9ca7a88eed4bd Mon Sep 17 00:00:00 2001 From: Trezy Date: Fri, 08 May 2026 15:56:23 +0000 Subject: [PATCH] ci: add test builds to cache Signed-off-by: Trezy --- .github/workflows/ci.yml | 14 ++++++++------ 1 file(s) changed, 8 insertion(s)(+), 6 deletion(s)(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -57,15 +57,16 @@ - name: Checkout repository uses: actions/checkout@v6 - - name: Cache cargo dependencies + - name: Cache cargo uses: actions/cache@v5 with: path: | ~/.cargo/registry ~/.cargo/git - key: cargo-deps-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} + target + key: cargo-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} restore-keys: | - cargo-deps-${{ runner.os }}- + cargo-${{ runner.os }}- - name: Run unit tests run: cargo test --lib @@ -92,15 +93,16 @@ - name: Checkout repository uses: actions/checkout@v6 - - name: Cache cargo dependencies + - name: Cache cargo uses: actions/cache@v5 with: path: | ~/.cargo/registry ~/.cargo/git - key: cargo-deps-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} + target + key: cargo-${{ runner.os }}-${{ hashFiles('Cargo.lock') }} restore-keys: | - cargo-deps-${{ runner.os }}- + cargo-${{ runner.os }}- - name: Add WASM target run: rustup target add wasm32-unknown-unknown -- tangled.sh