diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fad2278cd..ef2df7275 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,6 +8,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/cache@v4 + with: + path: ~/.cargo/registry/index + key: cargo-git-index - uses: dtolnay/rust-toolchain@1.63.0 - run: cp ci/compat-Cargo.lock ./Cargo.lock - run: cargo check --verbose --locked diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index 88cddd8b7..3e9d99fca 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -12,6 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/cache@v4 + with: + path: ~/.cargo/registry/index + key: cargo-git-index - uses: dtolnay/rust-toolchain@1.63.0 - run: cp ci/compat-Cargo.lock ./Cargo.lock - run: cargo check --verbose --locked