From b673f840a524b25b42b2dd65d78d47a719c3f9c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Garillot?= Date: Thu, 3 Sep 2020 15:58:40 -0400 Subject: [PATCH] Compile the benchmarks in CI --- .github/workflows/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1d760d0..7d08677 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -32,6 +32,26 @@ jobs: command: test args: --no-default-features --features ${{ matrix.backend_feature }} + benches: + name: cargo bench compilation + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Install nightly toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - name: Run cargo bench --no-run + uses: actions-rs/cargo@v1 + with: + command: bench + args: --features "bench" --no-run + clippy: name: cargo clippy runs-on: ubuntu-latest