Skip to content

Commit

Permalink
Add benchmark CI workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexhuszagh committed Sep 9, 2024
1 parent 298f452 commit 1dca151
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/Benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Benchmarks

on:
[push, workflow_dispatch]

jobs:
build:
name: Rust ${{matrix.rust}}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# Minimimum dependency requires 1.74.0+
rust: [1.74.0, 1.76.0, 1.78.0, 1.80.0, 1.81.0]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{matrix.rust}}
- run: cargo check
- run: cargo build
- run: |
cd lexical-benchmark
cargo build
cargo bench

0 comments on commit 1dca151

Please sign in to comment.