Skip to content

ci: Update release workflow (#121) #1

ci: Update release workflow (#121)

ci: Update release workflow (#121) #1

Workflow file for this run

name: Benchmarks
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
env:
CARGO_TERM_COLOR: always
RUST_VERSION: 1.72.1
jobs:
benchmarks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: make install-deps-apt
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.RUST_VERSION }}
- uses: Swatinem/rust-cache@v2
with:
key: ubuntu-benchmark
- name: Run cargo bench
run: cargo bench --workspace | tee bench-output.txt
- name: Store benchmark result
uses: rhysd/github-action-benchmark@v1
with:
name: openslide-rs Benchmark
tool: 'cargo'
save-data-file: ${{ github.event_name == 'push' }}
output-file-path: bench-output.txt
benchmark-data-dir-path: '.'
max-items-in-chart: 30
github-token: ${{ secrets.GITHUB_TOKEN }}
auto-push: true
alert-threshold: '200%'
comment-on-alert: true
fail-on-alert: true
comment-always: true
alert-comment-cc-users: '@AzHicham'