Skip to content

Commit c18f705

Browse files
authored
Merge pull request #2099 from tnull/2023-03-pin-ntapi-on-windows
Pin tokio to 1.26 on windows to fix CI
2 parents 697f37d + 73306a3 commit c18f705

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ jobs:
8686
run: cargo update -p tokio --precise "1.14.0" --verbose
8787
env:
8888
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
89+
- name: Pin tokio to 1.26 for Windows
90+
if: "matrix.platform == 'windows-latest'"
91+
run: cargo update -p tokio --precise "1.26.0" --verbose
92+
env:
93+
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
8994
- name: Build on Rust ${{ matrix.toolchain }} with net-tokio
9095
if: "matrix.build-net-tokio && !matrix.coverage"
9196
run: cargo build --verbose --color always

lightning-block-sync/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ chunked_transfer = { version = "1.4", optional = true }
2828

2929
[dev-dependencies]
3030
lightning = { version = "0.0.114", path = "../lightning", features = ["_test_utils"] }
31-
tokio = { version = "~1.14", features = [ "macros", "rt" ] }
31+
tokio = { version = "1.14", features = [ "macros", "rt" ] }

lightning-net-tokio/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ lightning = { version = "0.0.114", path = "../lightning" }
2020
tokio = { version = "1.0", features = [ "io-util", "macros", "rt", "sync", "net", "time" ] }
2121

2222
[dev-dependencies]
23-
tokio = { version = "~1.14", features = [ "io-util", "macros", "rt", "rt-multi-thread", "sync", "net", "time" ] }
23+
tokio = { version = "1.14", features = [ "io-util", "macros", "rt", "rt-multi-thread", "sync", "net", "time" ] }
2424
lightning = { version = "0.0.114", path = "../lightning", features = ["_test_utils"] }

0 commit comments

Comments
 (0)