Skip to content

Commit 7a453a2

Browse files
Merge #36: Test against stable and MSRV Rust versions.
cabe620 Test against stable and MSRV Rust versions. (root) Pull request description: This PR solves issue #35 Top commit has no ACKs. Tree-SHA512: 51bca1114dc696d562363787f1bb9b0ca3d1b3644744c8f4cce734dd128807946ed278b0dd44b6de46edda424494dc8b81cc11081ee7dd7754ee646ed52fa7d7
2 parents 0d5d986 + cabe620 commit 7a453a2

File tree

2 files changed

+34
-18
lines changed

2 files changed

+34
-18
lines changed

.github/workflows/cont_integration.yml

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,42 @@ jobs:
1313
build-test:
1414

1515
runs-on: ubuntu-latest
16-
16+
strategy:
17+
matrix:
18+
rust:
19+
- version: 1.65.0 # STABLE
20+
clippy: true
21+
- version: 1.57.0 # MSRV
22+
features:
23+
- default
24+
- blocking
25+
- async
26+
- async-https
1727
steps:
1828
- uses: actions/checkout@v3
19-
- name: Install rustup
20-
run: curl https://sh.rustup.rs -sSf | sh -s -- -y
29+
- name: Generate cache key
30+
run: echo "${{ matrix.rust.version }} ${{ matrix.features }}" | tee .cache_key
31+
- name: cache
32+
uses: actions/cache@v3
33+
with:
34+
path: |
35+
~/.cargo/registry
36+
~/.cargo/git
37+
target
38+
key: ${{ runner.os }}-cargo-${{ hashFiles('.cache_key') }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
2139
- name: Set default toolchain
22-
run: $HOME/.cargo/bin/rustup default stable
40+
run: rustup default ${{ matrix.rust.version }}
2341
- name: Set profile
24-
run: $HOME/.cargo/bin/rustup set profile minimal
25-
- name: Fmt
26-
run: cargo fmt -- --check --verbose
42+
run: rustup set profile minimal
43+
- name: Add clippy
44+
if: ${{ matrix.rust.clippy }}
45+
run: rustup component add clippy
46+
- name: Update toolchain
47+
run: rustup update
2748
- name: Build
28-
run: cargo build --verbose --all-features
29-
- name: Test all features
30-
run: cargo test --verbose --all-features -- --test-threads=1
31-
- name: Check only blocking feature
32-
run: cargo check --verbose --no-default-features --features=blocking
33-
- name: Check only async features
34-
run: cargo check --verbose --no-default-features --features=async
35-
- name: Check only async-http feature
36-
run: cargo check --verbose --no-default-features --features=async-https
49+
run: cargo build --features ${{ matrix.features }} --no-default-features
3750
- name: Clippy
38-
run: cargo clippy --all-targets --all-features -- -D warnings
51+
if: ${{ matrix.rust.clippy }}
52+
run: cargo clippy --all-targets --features ${{ matrix.features }} --no-default-features -- -D warnings
53+
- name: Test
54+
run: cargo test --features ${{ matrix.features }} --no-default-features

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ Bitcoin Esplora API client library. Supports plaintext, TLS and Onion servers. B
88
<a href="https://github.com/bitcoindevkit/rust-esplora-client/actions/workflows/cont_integration.yml"><img alt="CI Status" src="https://github.com/bitcoindevkit/rust-esplora-client/workflows/Rust/badge.svg"></a>
99
<a href='https://coveralls.io/github/bitcoindevkit/rust-esplora-client?branch=master'><img src='https://coveralls.io/repos/github/bitcoindevkit/rust-esplora-client/badge.svg?branch=master' alt='Coverage Status' /></a>
1010
<a href="https://docs.rs/esplora-client"><img alt="API Docs" src="https://img.shields.io/badge/docs.rs-esplora--client-green"/></a>
11-
<a href="https://blog.rust-lang.org/2021/11/01/Rust-1.56.1.html"><img alt="Rustc Version 1.56.1+" src="https://img.shields.io/badge/rustc-1.56.1%2B-lightgrey.svg"/></a>
11+
<a href="https://blog.rust-lang.org/2021/12/02/Rust-1.57.0.html"><img alt="Rustc Version 1.57.0+" src="https://img.shields.io/badge/rustc-1.57.0%2B-lightgrey.svg"/></a>
1212
<a href="https://discord.gg/d7NkDKm"><img alt="Chat on Discord" src="https://img.shields.io/discord/753336465005608961?logo=discord"></a>
1313
</p>

0 commit comments

Comments
 (0)