Pin tokio to 1.26 on windows to fix CI

This commit is contained in:
Elias Rohrer 2023-03-10 22:24:39 +01:00
parent 23c1b461ea
commit 73306a3503
No known key found for this signature in database
GPG Key ID: 36153082BDF676FD
3 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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" ] }

View File

@ -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"] }