|
20 | 20 | with: |
21 | 21 | fetch-depth: 1 |
22 | 22 |
|
| 23 | + - uses: jetli/wasm-pack-action@v0.4.0 |
| 24 | + with: |
| 25 | + version: "latest" |
| 26 | + |
23 | 27 | - name: Install just |
24 | 28 | uses: extractions/setup-just@v1 |
25 | 29 | with: |
@@ -60,35 +64,27 @@ jobs: |
60 | 64 | - name: Check dependencies |
61 | 65 | run: just deny |
62 | 66 |
|
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 | | - |
80 | 67 | - name: Store benchmark result |
81 | 68 | uses: benchmark-action/github-action-benchmark@v1 |
82 | 69 | with: |
| 70 | + name: Rust Benchmark |
83 | 71 | tool: "criterion" |
84 | 72 | output-file-path: target/criterion/**/new/*.json |
85 | 73 | alert-threshold: "150%" |
86 | 74 | 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/ |
87 | 83 |
|
88 | 84 | - name: Check benchmark results |
89 | 85 | if: github.event_name == 'pull_request' |
90 | 86 | run: | |
91 | | - if [ -f prev-benchmark/bench_result.json ]; then |
| 87 | + if [ -f dev/bench/data/latest.json ]; then |
92 | 88 | echo "Comparing benchmark results..." |
93 | 89 | fi |
94 | 90 |
|
|
98 | 94 | env: |
99 | 95 | CARGO_TERM_COLOR: always |
100 | 96 | RUST_BACKTRACE: 1 |
101 | | - RUSTFLAGS: "-D warnings" |
0 commit comments