Commit c32e7da 1 parent ce193c4 commit c32e7da Copy full SHA for c32e7da
File tree 1 file changed +9
-9
lines changed
1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -195,27 +195,27 @@ jobs:
195
195
# incompatible, it is necessary to bump the index below to invalidate
196
196
# the cached ledger snapshots, and recompute them from the CBOR ones
197
197
# (i.e. Full bootstrap below)
198
- key : ${{ runner.OS }}-ledger-cache-v2
198
+ key : ${{ runner.OS }}-ledger-cache-v2-${{ steps.timestamp.outputs.value }}
199
199
restore-keys : |
200
200
${{ runner.OS }}-ledger-cache-v2
201
201
202
202
- name : Full bootstrap amaru
203
- if : steps.cache-ledger-db.outputs.cache-hit != 'true '
203
+ if : steps.cache-ledger-db.outputs.cache-hit == ' '
204
204
run : |
205
205
make bootstrap
206
206
207
- - if : steps.cache-ledger-db.outputs.cache-hit != 'true'
208
- uses : actions/cache/save@v4
209
- with :
210
- path : ./ledger.db
211
- key : ${{ runner.OS }}-ledger-cache-v2
212
-
213
207
- name : Light bootstrap amaru
214
- if : steps.cache-ledger-db.outputs.cache-hit == 'true '
208
+ if : steps.cache-ledger-db.outputs.cache-hit != ' '
215
209
run : |
216
210
make import-headers
217
211
make import-nonces
218
212
213
+ - uses : actions/cache/save@v4
214
+ if : github.event_name == 'push' || steps.cache-ledger-db.outputs.cache-hit == ''
215
+ with :
216
+ path : ./ledger.db
217
+ key : ${{ runner.OS }}-ledger-cache-v2-${{ steps.timestamp.outputs.value }}
218
+
219
219
- name : Run node
220
220
timeout-minutes : 30
221
221
shell : bash
You can’t perform that action at this time.
0 commit comments