Skip to content

Commit

Permalink
ci: Add a registry cache for git protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Feb 6, 2024
1 parent aafcc8a commit 6a11c60
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/[email protected]
- 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/[email protected]
- run: cp ci/compat-Cargo.lock ./Cargo.lock
- run: cargo check --verbose --locked
Expand Down

0 comments on commit 6a11c60

Please sign in to comment.