Skip to content

Commit

Permalink
feat: setup benchmark workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BD103 committed Dec 26, 2024
1 parent f49cc95 commit 362fd5f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

env:
CARGO_TERM_COLOR: always

jobs:
benchmark:
name: Run Benchmarks
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Install Linux dependencies
uses: ./.github/actions/install-linux-deps

- name: Install cargo-codspeed
run: cargo install cargo-codspeed --locked

- name: Build Benchmarks
run: cargo codspeed build -p benches

- name: Run Benchmarks
uses: CodSpeedHQ/action@v3
with:
run: cargo codspeed run -p benches
token: ${{ secrets.CODSPEED_TOKEN }}

0 comments on commit 362fd5f

Please sign in to comment.