Skip to content

Commit

Permalink
ci: add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
buxx committed Jul 18, 2023
1 parent f66219e commit 16f4e59
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/actions/cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'Setup cache'
description: 'Setup cache to speed-up build'
runs:
using: "composite"
steps:
- name: ⚡ Cache
uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
2 changes: 2 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ jobs:
- uses: actions/checkout@v3
- id: setup
uses: ./.github/actions/setup
- id: cache
uses: ./.github/actions/cache
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down

0 comments on commit 16f4e59

Please sign in to comment.