From 3034f9d59d26146817c26959915feabf31943dfc Mon Sep 17 00:00:00 2001 From: Pierre Chifflier Date: Wed, 13 Mar 2024 17:19:24 +0100 Subject: [PATCH] Update CI to add a test matrix for features --- .github/workflows/rust.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 59799a4..31a5fec 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -28,9 +28,16 @@ jobs: with: command: check - test: - name: Test Suite + check_features: + name: Check features runs-on: ubuntu-latest + strategy: + matrix: + features: + - --features=default + - --all-features + - --features=bigint,serialize,debug + - --features=bigint,serialize,trace steps: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 @@ -38,10 +45,12 @@ jobs: profile: minimal toolchain: stable override: true + - name: Cargo update + run: cargo update - uses: actions-rs/cargo@v1 with: command: test - args: --all-features + args: ${{ matrix.features }} no_std: name: no-std