Skip to content

Commit

Permalink
(fix) github action step to cache dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
devqik committed Feb 8, 2025
1 parent 06ba8d4 commit 7b85377
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,17 @@ jobs:
if: matrix.os == 'windows-latest'
uses: ilammy/msvc-dev-cmd@v1

- name: Cache Rust dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ matrix.target }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-${{ matrix.target }}-
- name: Build binary
run: cargo build --release --target ${{ matrix.target }}

Expand Down

0 comments on commit 7b85377

Please sign in to comment.