-
Notifications
You must be signed in to change notification settings - Fork 7
58 lines (56 loc) · 1.77 KB
/
ci.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
name: Build & Test
on:
push:
branches:
- master
pull_request:
jobs:
build:
strategy:
matrix:
platform: [ubuntu-latest, macos-latest, windows-latest]
# Minumum Supported Rust Version (MSRV) is 1.63.0.
toolchain: [1.63.0, stable, beta, nightly]
include:
- toolchain: 1.63.0
msrv: true
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Update Toolchain
run: |
rustup default ${{ matrix.toolchain }}
rustup component add --toolchain ${{ matrix.toolchain }} rustfmt
rustup component add --toolchain ${{ matrix.toolchain }} clippy
rustup update ${{ matrix.toolchain }}
# - name: Pin dependencies
# if: matrix.msrv
# run: cargo update -p allocator-api2 --precise "0.2.9" --verbose
- name: Lint all targets
if: ${{ !matrix.msrv }}
run: cargo clippy --all-targets
- name: Format
if: ${{ !matrix.msrv }}
run: cargo fmt -- --check
- name: Build with defeault features
run: cargo build --verbose
- name: Check release build on Rust ${{ matrix.toolchain }}
run: cargo check --release --verbose --color always
- name: Unit test
if: ${{ !matrix.msrv }}
run: cargo test --verbose --lib
- name: Doc test
if: ${{ !matrix.msrv }}
run: cargo test --verbose --doc
signet:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Sync signet
run: cargo test --verbose test_signet_syncs
bitcoind:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Integration test
run: cargo test -- --test-threads 1 --skip test_signet_syncs --nocapture