Skip to content

Commit

Permalink
feat(ci): Build benchmarks in CI
Browse files Browse the repository at this point in the history
Builds benchmarks in CI (but doesn't run them), to ensure they stay
maintained.
  • Loading branch information
clabby committed Jun 29, 2024
1 parent 5ba2c0d commit 2db79d1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/rust_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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-${{ matrix.target }}
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
Expand Down

0 comments on commit 2db79d1

Please sign in to comment.