From 9d83c40b8dd90f80f799e96c92d886ec0fa0d515 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Wed, 29 Mar 2023 10:22:50 -0700 Subject: [PATCH] github: add a build target with all features This should catch build errors in the `bench` feature (and in any future non-default features). --- .github/workflows/build.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5da624068..2e2ec573b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,9 +15,14 @@ jobs: matrix: os: [ubuntu-latest, macos-latest, windows-latest] rust_version: [stable] + cargo_flags: [""] include: - os: ubuntu-latest rust_version: "1.64" + cargo_flags: "" + - os: ubuntu-latest + rust_version: stable + cargo_flags: "--all-features" runs-on: ${{ matrix.os }} steps: @@ -27,9 +32,9 @@ jobs: with: toolchain: ${{ matrix.rust_version }} - name: Build - run: cargo build --workspace --all-targets --verbose + run: cargo build --workspace --all-targets --verbose ${{ matrix.cargo_flags }} - name: Test - run: cargo test --workspace --all-targets --verbose + run: cargo test --workspace --all-targets --verbose ${{ matrix.cargo_flags }} env: RUST_BACKTRACE: 1