Skip to content

Commit

Permalink
ci: add workspace or single package to build-test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
oleonardolima committed Aug 26, 2024
1 parent 775e4ae commit eae9259
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/cont_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit eae9259

Please sign in to comment.