Skip to content

Commit

Permalink
chore(ci): add standalone benchmark job
Browse files Browse the repository at this point in the history
  • Loading branch information
adriencaccia committed Apr 30, 2024
1 parent 88f600a commit 7bbc18a
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: benchmark

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

# concurrency:
# group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
# cancel-in-progress: true

env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
CARGO_TERM_COLOR: always
RUSTUP_MAX_RETRIES: 10
PYTHON_VERSION: "3.12"

jobs:
benchmarks:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: "Checkout Branch"
uses: actions/checkout@v4

- name: "Install Rust toolchain"
run: rustup show

- name: "Install codspeed"
uses: taiki-e/install-action@v2
with:
tool: cargo-codspeed

- uses: Swatinem/rust-cache@v2

- name: "Build benchmarks"
run: cargo codspeed build --features codspeed -p bench

- name: "Run benchmarks"
uses: CodSpeedHQ/action@v2
with:
run: cargo codspeed run
token: ${{ secrets.CODSPEED_TOKEN }}

0 comments on commit 7bbc18a

Please sign in to comment.