From 91c5cd85b7598ad6a3d13928aef3f1e0a2ffc6fd Mon Sep 17 00:00:00 2001 From: Alex Huszagh Date: Sun, 8 Sep 2024 22:15:21 -0500 Subject: [PATCH] Add benchmark CI workflow. --- .github/workflows/Benchmark.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/Benchmark.yml diff --git a/.github/workflows/Benchmark.yml b/.github/workflows/Benchmark.yml new file mode 100644 index 00000000..c340512b --- /dev/null +++ b/.github/workflows/Benchmark.yml @@ -0,0 +1,27 @@ +name: Benchmarks + +on: + [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