Skip to content

Commit b6115d0

Browse files
cache and restore dumped accounts (#104)
* cache and restore dumped accounts * combine account caching into program build * add changeset
1 parent 9775534 commit b6115d0

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

.changeset/dull-horses-taste.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-solana-program": patch
3+
---
4+
5+
Cache and restore external accounts

template/base/.github/workflows/main.yml.njk

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,12 @@ jobs:
9292
path: ./target/deploy/*.so
9393
if-no-files-found: error
9494

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

101103
test_programs:
@@ -182,10 +184,12 @@ jobs:
182184
with:
183185
solana: true
184186

185-
- name: Restore Program Builds
187+
- name: Restore Client Artifacts
186188
uses: actions/cache/restore@v4
187189
with:
188-
path: ./**/*.so
190+
path: |
191+
./**/*.so
192+
./target/deploy/*.json
189193
key: {% raw %}${{ runner.os }}-builds-${{ github.sha }}{% endraw %}
190194

191195
- name: Test Client JS

0 commit comments

Comments
 (0)