X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=.github%2Fworkflows%2Fbuild.yml;h=100441d2be200cb85e6e70b296691851f9edb818;hb=73306a3503e1c266e26e401ceb53fa930cc0c990;hp=2bb21c2cdbb39b87c5d9f08f8d4fe73d9d4707aa;hpb=6ddf69c93b1c3e418251ed7a898efd943e47bc30;p=rust-lightning diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2bb21c2c..100441d2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -86,6 +86,11 @@ jobs: run: cargo update -p tokio --precise "1.14.0" --verbose env: CARGO_NET_GIT_FETCH_WITH_CLI: "true" + - name: Pin tokio to 1.26 for Windows + if: "matrix.platform == 'windows-latest'" + run: cargo update -p tokio --precise "1.26.0" --verbose + env: + CARGO_NET_GIT_FETCH_WITH_CLI: "true" - name: Build on Rust ${{ matrix.toolchain }} with net-tokio if: "matrix.build-net-tokio && !matrix.coverage" run: cargo build --verbose --color always @@ -127,18 +132,21 @@ jobs: cd lightning-transaction-sync cargo build --verbose --color always --features esplora-blocking cargo build --verbose --color always --features esplora-async + cargo build --verbose --color always --features esplora-async-https - name: Build transaction sync clients on Rust ${{ matrix.toolchain }} with features and full code-linking for coverage generation if: "matrix.build-tx-sync && matrix.coverage" run: | cd lightning-transaction-sync RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features esplora-blocking RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features esplora-async + RUSTFLAGS="-C link-dead-code" cargo build --verbose --color always --features esplora-async-https - name: Test transaction sync clients on Rust ${{ matrix.toolchain }} with features if: "matrix.build-tx-sync" run: | cd lightning-transaction-sync cargo test --verbose --color always --features esplora-blocking cargo test --verbose --color always --features esplora-async + cargo test --verbose --color always --features esplora-async-https - name: Test backtrace-debug builds on Rust ${{ matrix.toolchain }} if: "matrix.toolchain == 'stable'" shell: bash # Default on Winblows is powershell @@ -168,7 +176,7 @@ jobs: done # check no-std compatibility across dependencies cd no-std-check - cargo check --verbose --color always + cargo check --verbose --color always --features lightning-transaction-sync - name: Build no-std-check on Rust ${{ matrix.toolchain }} for ARM Embedded if: "matrix.build-no-std && matrix.platform == 'ubuntu-latest'" run: |