-
Notifications
You must be signed in to change notification settings - Fork 7
54 lines (47 loc) · 1.43 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
on: [pull_request]
jobs:
build:
name: Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
toolchain: ["1.60.0", "1.64.0", "1.66.0", "stable", "nightly"]
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo update -p cc --precise 1.0.28
- run: cargo build --features bitcoin,sha2
if: ${{ matrix.toolchain == '1.60.0' }}
- run: cargo build --features slice_cache
if: ${{ matrix.toolchain == '1.64.0' }}
- run: cargo build --features redb
if: ${{ matrix.toolchain == '1.66.0' }}
- run: cargo build --all-features
if: ${{ matrix.toolchain == 'stable' || matrix.toolchain == 'nightly' }}
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --all-features
lints:
name: Lints
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- run: cargo fmt --all -- --check
- run: cargo clippy -- -D warnings
bench:
name: Bench Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- run: cargo bench --all-features