Skip to content

worflow upgrade

worflow upgrade #189

Workflow file for this run

name: Benches
on:
push:
# branches: [ main, develop ]
workflow_call:
inputs:
toolchain:
description: 'rust toolchain'
required: true
default: 'stable'
type: string
# options:
# - stable
# - nightly
# - beta
env:
CARGO_TERM_COLOR: always
jobs:
bench:
name: Run criterion benches
runs-on: ubuntu-latest
# env:
# CRITERION_TOKEN: ${{ secrets.CRITERION_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ inputs.toolchain }}
# toolchain: stable
default: true
- name: Run benchmarks
run: cargo bench --verbose
# - name: Upload benchmarks
# run: |
# # upload the files
# bash <(curl -s https://criterion.dev/bash)