File tree 1 file changed +10
-3
lines changed
1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -328,14 +328,14 @@ jobs:
328
328
if : matrix.benchmarks
329
329
run : ./_build/install/default/bin/syntax_benchmarks | tee tests/benchmark-output.json
330
330
331
- - name : Download previous benchmark data
331
+ - name : Restore previous benchmark data
332
332
if : matrix.benchmarks
333
- uses : actions/cache@v4
333
+ uses : actions/cache/restore @v4
334
334
with :
335
335
path : ./tests/benchmark-cache
336
336
key : syntax-benchmark-v1
337
337
338
- - name : Store benchmark result
338
+ - name : Create new benchmark data and comment on alert
339
339
# Do not run for PRs created from other repos as those won't be able to write to the pull request
340
340
if : ${{ matrix.benchmarks && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.event.repository.full_name) }}
341
341
uses : benchmark-action/github-action-benchmark@v1
@@ -349,6 +349,13 @@ jobs:
349
349
comment-always : true
350
350
comment-on-alert : true
351
351
352
+ - name : Save benchmark data as new baseline
353
+ if : matrix.benchmarks && github.ref == 'refs/heads/master'
354
+ uses : actions/cache/save@v4
355
+ with :
356
+ path : ./tests/benchmark-cache
357
+ key : syntax-benchmark-v1
358
+
352
359
- name : Build playground compiler
353
360
if : matrix.build_playground
354
361
run : |
You can’t perform that action at this time.
0 commit comments