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 4c906e0 commit d25fd3d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Expand Up @@ -18,6 +18,11 @@ jobs:
]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
if: startsWith(matrix.rust, '1')
with:
path: ~/.cargo/registry/index
key: cargo-${{ matrix.rust }}-git-index
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/master.yaml
Expand Up @@ -16,6 +16,11 @@ jobs:
rust: [1.31.0, stable]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
if: startsWith(matrix.rust, '1')
with:
path: ~/.cargo/registry/index
key: cargo-${{ matrix.rust }}-git-index
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pr.yaml
Expand Up @@ -12,6 +12,11 @@ jobs:
rust: [1.31.0, stable]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v4
if: startsWith(matrix.rust, '1')
with:
path: ~/.cargo/registry/index
key: cargo-${{ matrix.rust }}-git-index
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.rust }}
Expand Down

0 comments on commit d25fd3d

Please sign in to comment.