Skip to content

Commit

Permalink
Merge pull request #1126 from cuviper/ci-cache
Browse files Browse the repository at this point in the history
ci: Add a registry cache for git protocol
  • Loading branch information
cuviper authored Feb 6, 2024
2 parents aafcc8a + 6a11c60 commit 6a4383a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6a4383a

Please sign in to comment.