From fe9141e57f327ee91ccc05d402af85c385dd4641 Mon Sep 17 00:00:00 2001 From: Steve Myers Date: Sun, 15 Dec 2024 20:50:07 -0600 Subject: [PATCH] ci: exclude test dependencies when building with MSRV --- .github/workflows/cont_integration.yml | 16 +++++----------- README.md | 19 +++++++++---------- 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/.github/workflows/cont_integration.yml b/.github/workflows/cont_integration.yml index e9b41b688..045212d23 100644 --- a/.github/workflows/cont_integration.yml +++ b/.github/workflows/cont_integration.yml @@ -41,22 +41,16 @@ jobs: - name: Pin dependencies for MSRV if: matrix.rust.version == '1.63.0' run: | - cargo update -p zstd-sys --precise "2.0.8+zstd.1.5.5" - cargo update -p time --precise "0.3.20" - cargo update -p home --precise "0.5.5" - cargo update -p proptest --precise "1.2.0" - cargo update -p url --precise "2.5.0" - cargo update -p cc --precise "1.0.105" cargo update -p tokio --precise "1.38.1" cargo update -p tokio-util --precise "0.7.11" - cargo update -p indexmap --precise "2.5.0" - cargo update -p security-framework-sys --precise "2.11.1" - cargo update -p csv --precise "1.3.0" - cargo update -p unicode-width --precise "0.1.13" cargo update -p rustls@0.23.20 --precise "0.23.19" + cargo update -p url --precise "2.5.0" + cargo update -p security-framework-sys --precise "2.11.1" + cargo update -p indexmap --precise "2.5.0" - name: Build - run: cargo build --workspace --exclude 'example_*' ${{ matrix.features }} + run: cargo build --workspace --exclude 'example_*' --exclude 'bdk_testenv' ${{ matrix.features }} - name: Test + if: matrix.rust.version != '1.63.0' run: cargo test --workspace --exclude 'example_*' ${{ matrix.features }} check-no-std: diff --git a/README.md b/README.md index d551f21d1..783e579ed 100644 --- a/README.md +++ b/README.md @@ -68,19 +68,18 @@ This library should compile with any combination of features with Rust 1.63.0. To build with the MSRV you will need to pin dependencies as follows: ```shell -cargo update -p zstd-sys --precise "2.0.8+zstd.1.5.5" -cargo update -p time --precise "0.3.20" -cargo update -p home --precise "0.5.5" -cargo update -p proptest --precise "1.2.0" -cargo update -p url --precise "2.5.0" -cargo update -p cc --precise "1.0.105" cargo update -p tokio --precise "1.38.1" cargo update -p tokio-util --precise "0.7.11" -cargo update -p indexmap --precise "2.5.0" -cargo update -p security-framework-sys --precise "2.11.1" -cargo update -p csv --precise "1.3.0" -cargo update -p unicode-width --precise "0.1.13" cargo update -p rustls@0.23.20 --precise "0.23.19" +cargo update -p url --precise "2.5.0" +cargo update -p security-framework-sys --precise "2.11.1" +cargo update -p indexmap --precise "2.5.0" +``` + +And exclude example and test related crates: + +```shell +cargo build --workspace --exclude 'example_*' --exclude 'bdk_testenv' ``` ## License