mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:30:01 +00:00
30 lines
560 B
YAML
30 lines
560 B
YAML
name: Run benchmarks
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
# push:
|
|
# branches:
|
|
# - main
|
|
|
|
jobs:
|
|
run-benchmarks:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Rust
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Run benchmarks
|
|
run: cargo bench
|
|
|
|
- name: Upload benchmark reports
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: benchmark-reports-${{ github.sha }}
|
|
path: ./target/criterion/
|