Skip to content

Commit 5d76e09

Browse files
committed
[actions] add caching of benchmark results
1 parent e149f8e commit 5d76e09

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/go.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,14 @@ jobs:
9797
- name: Run benchmarks
9898
run: go test -bench=. -benchmem ./... | tee benchmark.txt
9999

100+
# step 5: download previous benchmark result from cache (if exists)
101+
- name: Download previous benchmark data
102+
uses: actions/cache@v4
103+
with:
104+
path: ./cache
105+
key: ${{ runner.os }}-benchmark
106+
107+
# step 6: upload benchmark
100108
- name: Upload benchmark results
101109
uses: benchmark-action/github-action-benchmark@v1
102110
with:

0 commit comments

Comments
 (0)