Skip to content

Commit e49ce4a

Browse files
committed
ci: pin MSRV dependencies with cargo update and add instructions in README
1 parent eef97ad commit e49ce4a

File tree

4 files changed

+636
-500
lines changed

4 files changed

+636
-500
lines changed

.github/workflows/cont_integration.yml

Lines changed: 56 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,11 @@ name: CI
44

55
jobs:
66

7-
build-test:
7+
build-test-stable:
88
name: Build and test
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
rust:
13-
- 1.65.0 # STABLE
14-
- 1.57.0 # MSRV
1512
features:
1613
- default
1714
- electrum,sqlite-db
@@ -32,7 +29,7 @@ jobs:
3229
- name: Checkout
3330
uses: actions/checkout@v2
3431
- name: Generate cache key
35-
run: echo "${{ matrix.rust }} ${{ matrix.features }}" | tee .cache_key
32+
run: echo "stable ${{ matrix.features }}" | tee .cache_key
3633
- name: Cache
3734
uses: actions/cache@v2
3835
with:
@@ -44,10 +41,63 @@ jobs:
4441
- name: Setup Rust Toolchain
4542
uses: actions-rs/toolchain@v1
4643
with:
47-
toolchain: ${{ matrix.rust }}
44+
toolchain: stable
45+
profile: minimal
46+
override: true
47+
components: rustfmt, clippy
48+
- name: Build
49+
run: cargo build --no-default-features --features repl,${{ matrix.features }} --locked
50+
- name: Clippy
51+
run: cargo clippy -- -D warnings
52+
- name: Test
53+
run: cargo test --no-default-features --features repl,${{ matrix.features }}
54+
55+
# MSRV 1.57.0
56+
build-test-msrv:
57+
name: Build and test MSRV
58+
runs-on: ubuntu-latest
59+
strategy:
60+
matrix:
61+
features:
62+
- default
63+
- electrum,sqlite-db
64+
- electrum,key-value-db
65+
- electrum
66+
- esplora-ureq,sqlite-db
67+
#### DEP ERRORS - esplora-reqwest,sqlite-db
68+
- compiler,sqlite-db
69+
#- compact_filters,sqlite-db # Compact Filters temporarily disabled
70+
- rpc,sqlite-db
71+
- reserves,electrum,sqlite-db
72+
- electrum,verify,sqlite-db
73+
# regtest-* features are experimental and not fully usable
74+
#### DEP ERRORS - regtest-bitcoin,sqlite-db
75+
#### DEP ERRORS - regtest-electrum,sqlite-db
76+
77+
steps:
78+
- name: Checkout
79+
uses: actions/checkout@v2
80+
- name: Generate cache key
81+
run: echo "1.57.0 ${{ matrix.features }}" | tee .cache_key
82+
- name: Cache
83+
uses: actions/cache@v2
84+
with:
85+
path: |
86+
~/.cargo/registry
87+
~/.cargo/git
88+
target
89+
key: ${{ runner.os }}-cargo-${{ hashFiles('.cache_key') }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
90+
- name: Setup Rust Toolchain
91+
uses: actions-rs/toolchain@v1
92+
with:
93+
toolchain: 1.57.0
4894
profile: minimal
4995
override: true
5096
components: rustfmt, clippy
97+
- name: Pin Dependencies for MSRV 1.57.0
98+
run: |
99+
cargo update -p hashlink --precise 0.8.1
100+
cargo update -p log --precise 0.4.18
51101
- name: Build
52102
run: cargo build --no-default-features --features repl,${{ matrix.features }} --locked
53103
- name: Clippy

0 commit comments

Comments
 (0)