From cdf58339b5731e94bbe48dd6600a490daac156fc Mon Sep 17 00:00:00 2001 From: clabby Date: Sat, 29 Jun 2024 13:08:23 -0400 Subject: [PATCH] feat(ci): Build benchmarks in CI Builds benchmarks in CI (but doesn't run them), to ensure they stay maintained. --- .github/workflows/rust_ci.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/rust_ci.yaml b/.github/workflows/rust_ci.yaml index a008e21e5..1562622ba 100644 --- a/.github/workflows/rust_ci.yaml +++ b/.github/workflows/rust_ci.yaml @@ -51,6 +51,25 @@ jobs: - name: chown target run: | sudo chown -R $(id -u):$(id -g) ./target + cargo-build-benches: + runs-on: ubuntu-latest + timeout-minutes: 20 + name: build-benchmarks + continue-on-error: true + steps: + - name: Checkout sources + uses: actions/checkout@v4 + - uses: taiki-e/install-action@just + - name: Install Rust stable toolchain + uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + with: + cache-on-failure: true + - name: build benches + run: cargo bench --no-run --workspace --all + - name: chown target + run: | + sudo chown -R $(id -u):$(id -g) ./target cargo-build: runs-on: ubuntu-latest timeout-minutes: 20