Преглед на файлове

cache and restore dumped accounts (#104)

* cache and restore dumped accounts

* combine account caching into program build

* add changeset
Samuel Vanderwaal преди 1 година
родител
ревизия
b6115d0235
променени са 2 файла, в които са добавени 13 реда и са изтрити 4 реда
  1. 5 0
      .changeset/dull-horses-taste.md
  2. 8 4
      template/base/.github/workflows/main.yml.njk

+ 5 - 0
.changeset/dull-horses-taste.md

@@ -0,0 +1,5 @@
+---
+"create-solana-program": patch
+---
+
+Cache and restore external accounts

+ 8 - 4
template/base/.github/workflows/main.yml.njk

@@ -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:
@@ -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