From eae92591355d4b7b4454edb2244852284c87f379 Mon Sep 17 00:00:00 2001 From: Leonardo Lima Date: Mon, 26 Aug 2024 16:01:52 -0300 Subject: [PATCH] ci: add `workspace` or single `package` to build-test It adds a new choice for the matrix strategy, being `--workspace` or a single package, i.e. `-p bdk_wallet`. It will then build and test for the whole workspace and each single package. --- .github/workflows/cont_integration.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cont_integration.yml b/.github/workflows/cont_integration.yml index b41406617..6829c4476 100644 --- a/.github/workflows/cont_integration.yml +++ b/.github/workflows/cont_integration.yml @@ -14,7 +14,7 @@ jobs: - name: "Read rust version" id: read_toolchain run: echo "rust_version=$(cat rust-version)" >> $GITHUB_OUTPUT - + build-test: name: Build and test runs-on: ubuntu-latest @@ -27,6 +27,17 @@ jobs: features: - --no-default-features - --all-features + workspace-or-package: + - --workspace + - -p bdk_wallet + - -p bdk_chain + - -p bdk_core + - -p bdk_file_store + - -p bdk_electrum + - -p bdk_esplora + - -p bdk_bitcoind_rpc + - -p bdk_hwi + - -p bdk_testenv steps: - name: checkout uses: actions/checkout@v2 @@ -49,9 +60,9 @@ jobs: cargo update -p cc --precise "1.0.105" cargo update -p tokio --precise "1.38.1" - name: Build - run: cargo build ${{ matrix.features }} + run: cargo build ${{ matrix.workspace-or-package }} ${{ matrix.features }} - name: Test - run: cargo test ${{ matrix.features }} + run: cargo test ${{ matrix.workspace-or-package }} ${{ matrix.features }} check-no-std: name: Check no_std