From 7ccea272b9d71ff3028c5cb8c282116ea889dc4c Mon Sep 17 00:00:00 2001 From: Denis Varlakov Date: Mon, 25 Nov 2024 12:43:14 +0100 Subject: [PATCH] Update workflow Signed-off-by: Denis Varlakov --- .github/workflows/rust.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0cf589c..54f59e8 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -9,7 +9,7 @@ env: CARGO_NET_GIT_FETCH_WITH_CLI: true jobs: - build-no-features: + check-no-features: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -17,16 +17,33 @@ jobs: with: cache-on-failure: "true" - name: Build - run: cargo build - build-and-test-all-features: + run: cargo check --no-default-features + check: runs-on: ubuntu-latest + strategy: + matrix: + features: + - slip10 + - slip10,curve-secp256k1 + - slip10,curve-secp256r1 + - edwards + - stark steps: - uses: actions/checkout@v3 - uses: Swatinem/rust-cache@v2 with: cache-on-failure: "true" - name: Build - run: cargo build --all-features + run: cargo check --features ${{ matrix.features }} + check-and-test-all-features: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: Swatinem/rust-cache@v2 + with: + cache-on-failure: "true" + - name: Build + run: cargo check --all-features - name: Run tests run: cargo test --all-features --lib --tests doctest: