Skip to content

Introduce benchmarks using canbench #3

Introduce benchmarks using canbench

Introduce benchmarks using canbench #3

Workflow file for this run

on:
pull_request:
merge_group:
branches:
- master
name: Benchmarks
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: 1.82.0
override: true
- run: rustup target add wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
with:
shared-key: "build-debug"
save-if: "false"
- name: Benchmark
run: |
bash ./scripts/ci-run-benchmarks.sh . ${{ github.job }}
- uses: actions/upload-artifact@v4
with:
name: canbench_result_${{github.job}}
path: /tmp/canbench_result_${{ github.job }}
- name: Save PR number
run: |
echo ${{ github.event.number }} > /tmp/pr_number
- uses: actions/upload-artifact@v4
with:
name: pr_number
path: /tmp/pr_number
- name: Pass or fail
run: |
bash ./scripts/ci-post-run-benchmarks.sh