File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -433,20 +433,29 @@ jobs:
433433 run : node ./dist/cli/cli.js inspect gpu
434434
435435 - name : Cache models
436- id : cache-test-models
437- uses : actions/cache@v4
436+ id : cache-restore- test-models
437+ uses : actions/cache/restore @v4
438438 with :
439439 path : " test/.models/**.gguf"
440440 key : cache-test-models-${{ runner.os }}-${{ github.workflow }}
441441
442442 - name : Download models or ensure all models are downloaded
443+ id : download-all-test-models
443444 run : npm run dev:setup:downloadAllTestModels
444445
445446 - name : Run model dependent tests
446447 env :
447448 NODE_OPTIONS : " --max-old-space-size=4096"
448449 run : npm run test:modelDependent
449450
451+ - name : Save cached models
452+ id : cache-save-test-models
453+ if : steps.download-all-test-models.outcome == 'success' && always()
454+ uses : actions/cache/save@v4
455+ with :
456+ path : " test/.models/**.gguf"
457+ key : cache-test-models-${{ runner.os }}-${{ github.workflow }}
458+
450459 release :
451460 name : Release
452461 if : needs.resolve-next-release.outputs.next-version != '' && needs.resolve-next-release.outputs.next-version != 'false'
You can’t perform that action at this time.
0 commit comments