Skip to content

Commit

Permalink
cache and restore dumped accounts (#104)
Browse files Browse the repository at this point in the history
* cache and restore dumped accounts

* combine account caching into program build

* add changeset
  • Loading branch information
samuelvanderwaal authored Nov 15, 2024
1 parent 9775534 commit b6115d0
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/dull-horses-taste.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-solana-program": patch
---

Cache and restore external accounts
12 changes: 8 additions & 4 deletions template/base/.github/workflows/main.yml.njk
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,12 @@ jobs:
path: ./target/deploy/*.so
if-no-files-found: error

- name: Save Program Builds For Client Jobs
- name: Save Client Artifacts
uses: actions/cache/save@v4
with:
path: ./**/*.so
path: |
./**/*.so
./target/deploy/*.json
key: {% raw %}${{ runner.os }}-builds-${{ github.sha }}{% endraw %}

test_programs:
Expand Down Expand Up @@ -182,10 +184,12 @@ jobs:
with:
solana: true

- name: Restore Program Builds
- name: Restore Client Artifacts
uses: actions/cache/restore@v4
with:
path: ./**/*.so
path: |
./**/*.so
./target/deploy/*.json
key: {% raw %}${{ runner.os }}-builds-${{ github.sha }}{% endraw %}

- name: Test Client JS
Expand Down

0 comments on commit b6115d0

Please sign in to comment.