mirror of https://github.com/boa-dev/boa.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
975 B
31 lines
975 B
on: [pull_request] |
|
name: Benchmarks |
|
jobs: |
|
runBenchmark: |
|
name: run benchmark |
|
runs-on: ubuntu-latest |
|
steps: |
|
- uses: actions/checkout@v1 |
|
- uses: actions-rs/toolchain@v1 |
|
with: |
|
toolchain: stable |
|
override: true |
|
profile: minimal |
|
- name: Cache cargo registry |
|
uses: actions/cache@v1 |
|
with: |
|
path: ~/.cargo/registry |
|
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} |
|
- name: Cache cargo index |
|
uses: actions/cache@v1 |
|
with: |
|
path: ~/.cargo/git |
|
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} |
|
- name: Cache cargo build |
|
uses: actions/cache@v1 |
|
with: |
|
path: target |
|
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} |
|
- uses: jasonwilliams/criterion-compare-action@master |
|
env: |
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|