Skip to content

Commit

Permalink
Cache Rust client dependencies (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
lorisleiva authored Sep 8, 2023
1 parent d9473e6 commit 16f1a35
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-programs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:

- name: Cache program dependencies
if: env.CACHE == 'true'
uses: metaplex-foundation/actions/cache-programs@v1
uses: metaplex-foundation/actions/cache-crates@v1

- name: Build programs
shell: bash
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build-rust-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ jobs:
version: ${{ inputs.solana || env.SOLANA_VERSION }}
cache: ${{ env.CACHE }}

- name: Cache Rust client dependencies
uses: metaplex-foundation/actions/cache-crate@v1
with:
folder: ./clients/rust
key: rust-client

- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-programs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Cache program dependencies
if: env.CACHE == 'true'
uses: metaplex-foundation/actions/cache-program@v1
uses: metaplex-foundation/actions/cache-crates@v1
with:
folder: ./programs/${{ matrix.program }}
key: program-${{ matrix.program }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/test-rust-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ jobs:
version: ${{ env.SOLANA_VERSION }}
cache: ${{ env.CACHE }}

- name: Cache Rust client test dependencies
uses: metaplex-foundation/actions/cache-crate@v1
with:
folder: ./clients/rust
key: rust-client-test

- name: Download program builds
uses: actions/download-artifact@v3
with:
Expand Down

0 comments on commit 16f1a35

Please sign in to comment.