generated from web-infra-dev/napi-template
-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (37 loc) · 922 Bytes
/
Bench.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Benchmark
env:
DEBUG: 'napi:*'
APP_NAME: 'rspack-sources'
MACOSX_DEPLOYMENT_TARGET: '10.13'
# https://github.com/SchrodingerZhu/snmalloc-rs
CACHE_FRIENDLY_OFFSET: 64
'on':
push:
branches:
- main
tags-ignore:
- '**'
paths-ignore:
- '**/*.md'
- LICENSE
- '**/*.gitignore'
- .editorconfig
- docs/**
pull_request: null
jobs:
benchmark:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: moonrepo/setup-rust@v1
- name: Run benchmark(Rust)
run: cargo bench | tee output_rust.txt
- name: Store benchmark result(Rust)
uses: benchmark-action/github-action-benchmark@v1
with:
tool: 'cargo'
output-file-path: output_rust.txt
auto-push: true
github-token: ${{ secrets.GITHUB_TOKEN }}
comment-always: true