From 6a11c60e044ba4447c0d325fefe4b6f012fa5bc3 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 6 Feb 2024 10:34:48 -0800 Subject: [PATCH] ci: Add a registry cache for git protocol --- .github/workflows/ci.yaml | 4 ++++ .github/workflows/pr.yaml | 4 ++++ 2 files changed, 8 insertions(+) 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