forked from bitcoindevkit/bdk
-
Notifications
You must be signed in to change notification settings - Fork 1
73 lines (69 loc) · 2.54 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
on: [push, pull_request]
name: CI
jobs:
self-care:
name: Flake self-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check Nix flake inputs
uses: DeterminateSystems/flake-checker-action@v5
with:
fail-mode: true
continuous-integration:
name: Build, test, check everything
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v5
# Cache Nix artifacts
- uses: cachix/cachix-action@v12
with:
name: bitcoindevkit
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
continue-on-error: true # for forks outside of bitcoindevkit GH org
# Cache Builds
- name: Build and Cache latest Rust
run: nix build -L . --keep-failed
- name: Build and Cache MRSV
run: nix build -L .#MSRV --keep-failed
- name: Build and Cache WASM
run: nix build -L .#WASM --keep-failed
# Rustfmt
- name: Rustfmt
run: nix build -L .#ci.fmt --keep-failed
# Clippy
- name: Clippy
run: nix build -L .#ci.clippy --keep-failed
# Audit
- name: Audit
run: nix build -L .#ci.audit --keep-failed
# Tests: latest
- name: Test workspace all-features latest
run: nix build -L .#ci.latest.all --keep-failed
- name: Test workspace no-default-features latest
run: nix build -L .#ci.latest.noDefault --keep-failed
- name: Test bdk no-std latest
run: nix build -L .#ci.latest.noStdBdk --keep-failed
- name: Test bdk_chain no-std latest
run: nix build -L .#ci.latest.noStdChain --keep-failed
- name: Test bdk_esplora no-std latest
run: nix build -L .#ci.latest.noStdEsplora --keep-failed
# Tests: MSRV
- name: Test workspace all-features MSRV
run: nix build -L .#ci.MSRV.all --keep-failed
- name: Test workspace no-default-features MSRV
run: nix build -L .#ci.MSRV.noDefault --keep-failed
- name: Test bdk no-std MSRV
run: nix build -L .#ci.MSRV.noStdBdk --keep-failed
- name: Test bdk_chain no-std MSRV
run: nix build -L .#ci.MSRV.noStdChain --keep-failed
- name: Test bdk_esplora no-std MSRV
run: nix build -L .#ci.MSRV.noStdEsplora --keep-failed
# Checks: WASM
- name: Check bdk WASM
run: nix build -L .#ci.WASM.bdk --keep-failed
- name: Check bdk_esplora WASM
run: nix build -L .#ci.WASM.esplora --keep-failed