Skip to content

Commit ba301fd

Browse files
committed
🐛 fix bench workflow
1 parent a5d3c6a commit ba301fd

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

.github/workflows/bench.yml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
with:
2121
fetch-depth: 1
2222

23+
- uses: jetli/wasm-pack-action@v0.4.0
24+
with:
25+
version: "latest"
26+
2327
- name: Install just
2428
uses: extractions/setup-just@v1
2529
with:
@@ -60,35 +64,27 @@ jobs:
6064
- name: Check dependencies
6165
run: just deny
6266

63-
- name: Upload benchmark results
64-
uses: actions/upload-artifact@v4
65-
with:
66-
name: benchmark-results-${{ github.sha }}
67-
path: |
68-
./target/criterion/**/*.json
69-
./target/criterion/**/*.svg
70-
if-no-files-found: error
71-
retention-days: 90
72-
73-
- name: Download previous benchmark data
74-
uses: actions/download-artifact@v4
75-
continue-on-error: true
76-
with:
77-
path: prev-benchmark
78-
name: benchmark-results-${{ github.event.before }}
79-
8067
- name: Store benchmark result
8168
uses: benchmark-action/github-action-benchmark@v1
8269
with:
70+
name: Rust Benchmark
8371
tool: "criterion"
8472
output-file-path: target/criterion/**/new/*.json
8573
alert-threshold: "150%"
8674
github-token: ${{ secrets.GITHUB_TOKEN }}
75+
auto-push: true
76+
# Comment the following lines to use GitHub Pages instead
77+
gh-pages-branch: gh-pages
78+
benchmark-data-dir-path: dev/bench/data
79+
# Uncomment the following lines to publish to GitHub Pages
80+
# publish-to-github-pages: true
81+
# github-pages-branch: gh-pages
82+
# static-site-dir: dev/bench/
8783

8884
- name: Check benchmark results
8985
if: github.event_name == 'pull_request'
9086
run: |
91-
if [ -f prev-benchmark/bench_result.json ]; then
87+
if [ -f dev/bench/data/latest.json ]; then
9288
echo "Comparing benchmark results..."
9389
fi
9490
@@ -98,4 +94,3 @@ jobs:
9894
env:
9995
CARGO_TERM_COLOR: always
10096
RUST_BACKTRACE: 1
101-
RUSTFLAGS: "-D warnings"

0 commit comments

Comments
 (0)