From adea2349872c4a9611b731c37f7efa28c2eae166 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Sat, 8 Jun 2024 20:47:48 -0700 Subject: [PATCH] Try again --- .github/workflows/ci-rust.yml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-rust.yml b/.github/workflows/ci-rust.yml index 09604527..6189e5b8 100644 --- a/.github/workflows/ci-rust.yml +++ b/.github/workflows/ci-rust.yml @@ -16,9 +16,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - with: - sparse-checkout: 'src-tauri' - sparse-checkout-cone-mode: false - run: | sudo apt-get update sudo apt-get install -y libwebkit2gtk-4.1-dev @@ -28,7 +25,24 @@ jobs: profile: minimal toolchain: nightly # required for `cargo udeps` override: true + - name: Set up cargo cache + uses: actions/cache@v3 + continue-on-error: false + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + restore-keys: ${{ runner.os }}-cargo- - name: Lint run: cargo check + - run: cargo install --locked cargo-udeps || true + - name: Check + run: | + cargo udeps + rm -rf ~/.cargo/advisory-db - name: Test run: cargo test --all