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