From 3e41c5aacd3f15cb37c87758d411d6ce05bd3521 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Wed, 1 Sep 2021 21:19:21 +0100 Subject: [PATCH] cache cargo hack --- .cargo/config.toml | 2 +- .github/workflows/ci.yml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index a0b640b6..16d75ced 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -2,4 +2,4 @@ chk = "check --workspace --all-features --tests --examples --bins" lint = "clippy --workspace --all-features --tests --examples --bins -- -Dclippy::todo" ci-test = "test --workspace --all-features --lib --tests --no-fail-fast -- --nocapture" -ci-doctest = "hack test --workspace --all-features --doc --no-fail-fast -- --nocapture" +ci-doctest = "test --workspace --all-features --doc --no-fail-fast -- --nocapture" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 49ed8291..a0f62910 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -142,6 +142,12 @@ jobs: profile: minimal override: true + - name: Generate Cargo.lock + uses: actions-rs/cargo@v1 + with: { command: generate-lockfile } + - name: Cache Dependencies + uses: Swatinem/rust-cache@v1.3.0 + - name: Install cargo-hack uses: actions-rs/cargo@v1 with: