From: Elias Rohrer Date: Fri, 10 Mar 2023 21:24:39 +0000 (+0100) Subject: Pin tokio to 1.26 on windows to fix CI X-Git-Tag: v0.0.115~66^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=73306a3503e1c266e26e401ceb53fa930cc0c990;p=rust-lightning Pin tokio to 1.26 on windows to fix CI --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 10f71bda..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 diff --git a/lightning-block-sync/Cargo.toml b/lightning-block-sync/Cargo.toml index 69c64a14..894c3b52 100644 --- a/lightning-block-sync/Cargo.toml +++ b/lightning-block-sync/Cargo.toml @@ -28,4 +28,4 @@ chunked_transfer = { version = "1.4", optional = true } [dev-dependencies] lightning = { version = "0.0.114", path = "../lightning", features = ["_test_utils"] } -tokio = { version = "~1.14", features = [ "macros", "rt" ] } +tokio = { version = "1.14", features = [ "macros", "rt" ] } diff --git a/lightning-net-tokio/Cargo.toml b/lightning-net-tokio/Cargo.toml index 203fbc9b..6250628d 100644 --- a/lightning-net-tokio/Cargo.toml +++ b/lightning-net-tokio/Cargo.toml @@ -20,5 +20,5 @@ lightning = { version = "0.0.114", path = "../lightning" } tokio = { version = "1.0", features = [ "io-util", "macros", "rt", "sync", "net", "time" ] } [dev-dependencies] -tokio = { version = "~1.14", features = [ "io-util", "macros", "rt", "rt-multi-thread", "sync", "net", "time" ] } +tokio = { version = "1.14", features = [ "io-util", "macros", "rt", "rt-multi-thread", "sync", "net", "time" ] } lightning = { version = "0.0.114", path = "../lightning", features = ["_test_utils"] }