-
Notifications
You must be signed in to change notification settings - Fork 17
85 lines (74 loc) · 2.08 KB
/
cont_integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
on:
push:
branches:
- master
pull_request: {}
name: CI
jobs:
build:
strategy:
matrix:
os: ["macos-12", "ubuntu-22.04", "windows-2022"]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo build
test-electrs:
name: Test Electrs
runs-on: ubuntu-20.04
env:
CARGO_TERM_COLOR: always
RUST_LOG: debug
strategy:
matrix:
features:
- bitcoind_22_1,electrs_0_8_10
- bitcoind_22_1,electrs_0_9_1
- bitcoind_22_1,electrs_0_9_11
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --features ${{ matrix.features }}
test-electrs-esplora:
name: Test Electrs Esplora
runs-on: ubuntu-20.04
env:
CARGO_TERM_COLOR: always
strategy:
matrix:
features: ["bitcoind_22_1,legacy,esplora_a33e97e1"]
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --features ${{ matrix.features }}
test-electrs-no-download:
name: Test Electrs no auto-download features
runs-on: ubuntu-20.04
env:
CARGO_TERM_COLOR: always
ELECTRS_EXEC: "/home/runner/.cargo-install/electrs/bin/electrs"
steps:
- uses: dtolnay/rust-toolchain@stable
- name: Install electrs
# Automatically cache installed binaries to avoid compiling them each run
uses: baptiste0928/cargo-install@v2
with:
crate: electrs
- run: "echo $ELECTRS_EXEC"
- name: Checkout Crate
uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- run: cargo test --features 'bitcoind/25_0'
cosmetics:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- uses: dtolnay/rust-toolchain@stable
- run: cargo fmt -- --check
- run: cargo clippy -- -D warnings