-
Notifications
You must be signed in to change notification settings - Fork 451
bdk v1.0.0-alpha.0 #793
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bdk v1.0.0-alpha.0 #793
Changes from all commits
544c397
aab2b12
a40da9b
57538e5
5985706
b310a7a
3baf972
e1eb025
fdfc9b9
8a6de3a
22bec6d
b60820a
6d05598
20e45b7
9edbdf5
94a084a
1c970a9
f2188f9
37dfa77
03deafb
949608a
c069b0f
2e82cd8
b555976
303a170
3f5a78a
1805bd3
c61b360
8c9bceb
5acee82
5708bf0
96d932c
3a5d727
38ef170
a38f633
0ba41c5
dfcbafd
0c7a0ab
d267517
b082932
b3836cb
69cf6d7
de9457f
0505cd7
eddd748
9d26121
47faa88
0aaf420
ab9242d
26ab2e2
def0c9e
ae9b19d
5dd4ce7
2fcf9c4
352f95f
bc3e05c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,118 +10,27 @@ jobs: | |
| strategy: | ||
| matrix: | ||
| rust: | ||
| - version: 1.65.0 # STABLE | ||
| - version: stable | ||
| clippy: true | ||
| - version: 1.57.0 # MSRV | ||
| features: | ||
| - default | ||
| - minimal | ||
| - all-keys | ||
| - minimal,use-esplora-blocking | ||
| - key-value-db | ||
| - electrum | ||
| - compact_filters | ||
| - use-esplora-blocking,key-value-db,electrum | ||
| - compiler | ||
| - rpc | ||
| - verify | ||
| - async-interface | ||
| - use-esplora-async | ||
| - sqlite | ||
| - sqlite-bundled | ||
| - --no-default-features | ||
| - --all-features | ||
| steps: | ||
| - name: checkout | ||
| uses: actions/checkout@v2 | ||
| - name: Generate cache key | ||
| run: echo "${{ matrix.rust.version }} ${{ matrix.features }}" | tee .cache_key | ||
| - name: cache | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry | ||
| ~/.cargo/git | ||
| target | ||
| key: ${{ runner.os }}-cargo-${{ hashFiles('.cache_key') }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} | ||
| - name: Set default toolchain | ||
| run: rustup default ${{ matrix.rust.version }} | ||
| - name: Set profile | ||
| run: rustup set profile minimal | ||
| - name: Add clippy | ||
| if: ${{ matrix.rust.clippy }} | ||
| run: rustup component add clippy | ||
| - name: Update toolchain | ||
| run: rustup update | ||
| - name: Build | ||
| run: cargo build --features ${{ matrix.features }} --no-default-features | ||
| - name: Clippy | ||
| if: ${{ matrix.rust.clippy }} | ||
| run: cargo clippy --all-targets --features ${{ matrix.features }} --no-default-features -- -D warnings | ||
| - name: Test | ||
| run: cargo test --features ${{ matrix.features }} --no-default-features | ||
|
|
||
| test-readme-examples: | ||
| name: Test README.md examples | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: checkout | ||
| uses: actions/checkout@v2 | ||
| - name: cache | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry | ||
| ~/.cargo/git | ||
| target | ||
| key: ${{ runner.os }}-cargo-test-md-docs-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} | ||
| - name: Set default toolchain | ||
| run: rustup default nightly | ||
| - name: Set profile | ||
| run: rustup set profile minimal | ||
| - name: Update toolchain | ||
| run: rustup update | ||
| - name: Test | ||
| run: cargo test --features test-md-docs --no-default-features -- doctest::ReadmeDoctests | ||
|
Comment on lines
-62
to
-83
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I suppose we're still going to have some examples in the README, so we shouldn't remove the checks from the CI
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I was going to change how this is done actually. I was just gonna include the README as a doc in the |
||
|
|
||
| test-blockchains: | ||
| name: Blockchain ${{ matrix.blockchain.features }} | ||
| runs-on: ubuntu-20.04 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| blockchain: | ||
| - name: electrum | ||
| testprefix: blockchain::electrum::test | ||
| features: test-electrum,verify | ||
| - name: rpc | ||
| testprefix: blockchain::rpc::test | ||
| features: test-rpc | ||
| - name: rpc-legacy | ||
| testprefix: blockchain::rpc::test | ||
| features: test-rpc-legacy | ||
| - name: esplora | ||
| testprefix: esplora | ||
| features: test-esplora,use-esplora-async,verify | ||
| - name: esplora | ||
| testprefix: esplora | ||
| features: test-esplora,use-esplora-blocking,verify | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v2 | ||
| - name: Cache | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry | ||
| ~/.cargo/git | ||
| target | ||
| key: ${{ runner.os }}-cargo-${{ github.job }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} | ||
| - name: Setup rust toolchain | ||
| - name: Install Rust toolchain | ||
| uses: actions-rs/toolchain@v1 | ||
| with: | ||
| toolchain: stable | ||
| override: true | ||
| toolchain: ${{ matrix.rust.version }} | ||
| override: true | ||
| profile: minimal | ||
| - name: Rust Cache | ||
| uses: Swatinem/rust-cache@v2.2.1 | ||
| - name: Build | ||
| run: cargo build ${{ matrix.features }} | ||
| - name: Test | ||
| run: cargo test --no-default-features --features ${{ matrix.blockchain.features }} ${{ matrix.blockchain.testprefix }}::bdk_blockchain_tests | ||
| run: cargo test ${{ matrix.features }} | ||
|
|
||
| check-wasm: | ||
| name: Check WASM | ||
|
|
@@ -132,72 +41,57 @@ jobs: | |
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v2 | ||
| - name: Cache | ||
| uses: actions/cache@v2 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry | ||
| ~/.cargo/git | ||
| target | ||
| key: ${{ runner.os }}-cargo-${{ github.job }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }} | ||
| # Install a recent version of clang that supports wasm32 | ||
| - run: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - || exit 1 | ||
| - run: sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-10 main" || exit 1 | ||
| - run: sudo apt-get update || exit 1 | ||
| - run: sudo apt-get install -y libclang-common-10-dev clang-10 libc6-dev-i386 || exit 1 | ||
| - name: Set default toolchain | ||
| run: rustup default 1.65.0 # STABLE | ||
| - name: Set profile | ||
| run: rustup set profile minimal | ||
| - name: Add target wasm32 | ||
| run: rustup target add wasm32-unknown-unknown | ||
| - name: Update toolchain | ||
| run: rustup update | ||
| - name: Check | ||
| run: cargo check --target wasm32-unknown-unknown --features async-interface,use-esplora-async,dev-getrandom-wasm --no-default-features | ||
| - name: Install Rust toolchain | ||
| uses: actions-rs/toolchain@v1 | ||
| with: | ||
| toolchain: stable | ||
| override: true | ||
| profile: minimal | ||
| target: "wasm32-unknown-unknown" | ||
| - name: Rust Cache | ||
| uses: Swatinem/rust-cache@v2.2.1 | ||
| - name: Check bdk | ||
| working-directory: ./crates/bdk | ||
| run: cargo check --target wasm32-unknown-unknown --features dev-getrandom-wasm | ||
| - name: Check esplora | ||
| working-directory: ./crates/esplora | ||
| run: cargo check --target wasm32-unknown-unknown --features async --no-default-features | ||
|
|
||
| fmt: | ||
| name: Rust fmt | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v2 | ||
| - name: Set default toolchain | ||
| run: rustup default nightly | ||
| - name: Set profile | ||
| run: rustup set profile minimal | ||
| - name: Add rustfmt | ||
| run: rustup component add rustfmt | ||
| - name: Update toolchain | ||
| run: rustup update | ||
| - name: Install Rust toolchain | ||
| uses: actions-rs/toolchain@v1 | ||
| with: | ||
| toolchain: stable | ||
| override: true | ||
| profile: minimal | ||
| components: rustfmt | ||
| - name: Check fmt | ||
| run: cargo fmt --all -- --config format_code_in_doc_comments=true --check | ||
|
|
||
| test_hardware_wallet: | ||
| runs-on: ubuntu-20.04 | ||
| strategy: | ||
| matrix: | ||
| rust: | ||
| - version: 1.65.0 # STABLE | ||
| - version: 1.57.0 # MSRV | ||
| clippy_check: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v3 | ||
| - name: Build simulator image | ||
| run: docker build -t hwi/ledger_emulator ./ci -f ci/Dockerfile.ledger | ||
| - name: Run simulator image | ||
| run: docker run --name simulator --network=host hwi/ledger_emulator & | ||
| - name: Install Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.9' | ||
| - name: Install python dependencies | ||
| run: pip install hwi==2.1.1 protobuf==3.20.1 | ||
| - name: Set default toolchain | ||
| run: rustup default ${{ matrix.rust.version }} | ||
| - name: Set profile | ||
| run: rustup set profile minimal | ||
| - name: Update toolchain | ||
| run: rustup update | ||
| - name: Test | ||
| run: cargo test --features test-hardware-signer | ||
| - uses: actions/checkout@v1 | ||
| - uses: actions-rs/toolchain@v1 | ||
| with: | ||
| # we pin clippy instead of using "stable" so that our CI doesn't break | ||
| # at each new cargo release | ||
| toolchain: "1.67.0" | ||
| components: clippy | ||
| override: true | ||
| - name: Rust Cache | ||
| uses: Swatinem/rust-cache@v2.2.1 | ||
| - uses: actions-rs/clippy-check@v1 | ||
| with: | ||
| token: ${{ secrets.GITHUB_TOKEN }} | ||
| args: --all-features --all-targets -- -D warnings | ||
Uh oh!
There was an error while loading. Please reload this page.