Skip to content

Commit fe9141e

Browse files
committed
ci: exclude test dependencies when building with MSRV
1 parent ed88439 commit fe9141e

File tree

2 files changed

+14
-21
lines changed

2 files changed

+14
-21
lines changed

.github/workflows/cont_integration.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,16 @@ jobs:
4141
- name: Pin dependencies for MSRV
4242
if: matrix.rust.version == '1.63.0'
4343
run: |
44-
cargo update -p zstd-sys --precise "2.0.8+zstd.1.5.5"
45-
cargo update -p time --precise "0.3.20"
46-
cargo update -p home --precise "0.5.5"
47-
cargo update -p proptest --precise "1.2.0"
48-
cargo update -p url --precise "2.5.0"
49-
cargo update -p cc --precise "1.0.105"
5044
cargo update -p tokio --precise "1.38.1"
5145
cargo update -p tokio-util --precise "0.7.11"
52-
cargo update -p indexmap --precise "2.5.0"
53-
cargo update -p security-framework-sys --precise "2.11.1"
54-
cargo update -p csv --precise "1.3.0"
55-
cargo update -p unicode-width --precise "0.1.13"
5646
cargo update -p [email protected] --precise "0.23.19"
47+
cargo update -p url --precise "2.5.0"
48+
cargo update -p security-framework-sys --precise "2.11.1"
49+
cargo update -p indexmap --precise "2.5.0"
5750
- name: Build
58-
run: cargo build --workspace --exclude 'example_*' ${{ matrix.features }}
51+
run: cargo build --workspace --exclude 'example_*' --exclude 'bdk_testenv' ${{ matrix.features }}
5952
- name: Test
53+
if: matrix.rust.version != '1.63.0'
6054
run: cargo test --workspace --exclude 'example_*' ${{ matrix.features }}
6155

6256
check-no-std:

README.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,18 @@ This library should compile with any combination of features with Rust 1.63.0.
6868
To build with the MSRV you will need to pin dependencies as follows:
6969

7070
```shell
71-
cargo update -p zstd-sys --precise "2.0.8+zstd.1.5.5"
72-
cargo update -p time --precise "0.3.20"
73-
cargo update -p home --precise "0.5.5"
74-
cargo update -p proptest --precise "1.2.0"
75-
cargo update -p url --precise "2.5.0"
76-
cargo update -p cc --precise "1.0.105"
7771
cargo update -p tokio --precise "1.38.1"
7872
cargo update -p tokio-util --precise "0.7.11"
79-
cargo update -p indexmap --precise "2.5.0"
80-
cargo update -p security-framework-sys --precise "2.11.1"
81-
cargo update -p csv --precise "1.3.0"
82-
cargo update -p unicode-width --precise "0.1.13"
8373
cargo update -p [email protected] --precise "0.23.19"
74+
cargo update -p url --precise "2.5.0"
75+
cargo update -p security-framework-sys --precise "2.11.1"
76+
cargo update -p indexmap --precise "2.5.0"
77+
```
78+
79+
And exclude example and test related crates:
80+
81+
```shell
82+
cargo build --workspace --exclude 'example_*' --exclude 'bdk_testenv'
8483
```
8584

8685
## License

0 commit comments

Comments
 (0)