Skip to content

Commit 3f7ebdf

Browse files
committed
Pin tokio to 1.26 on windows to fix CI
1 parent 23c1b46 commit 3f7ebdf

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,14 @@ jobs:
3939
build-tx-sync: true
4040
- toolchain: stable
4141
platform: windows-latest
42+
build-net-windows-tokio: true
4243
build-net-tokio: true
4344
build-no-std: true
4445
build-futures: true
4546
build-tx-sync: false
4647
- toolchain: beta
4748
platform: windows-latest
49+
build-net-windows-tokio: true
4850
build-net-tokio: true
4951
build-no-std: true
5052
build-futures: true
@@ -86,6 +88,11 @@ jobs:
8688
run: cargo update -p tokio --precise "1.14.0" --verbose
8789
env:
8890
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
91+
- name: Pin tokio to 1.26 for windows
92+
if: "matrix.build-net-windows-tokio"
93+
run: cargo update -p tokio --precise "1.26.0" --verbose
94+
env:
95+
CARGO_NET_GIT_FETCH_WITH_CLI: "true"
8996
- name: Build on Rust ${{ matrix.toolchain }} with net-tokio
9097
if: "matrix.build-net-tokio && !matrix.coverage"
9198
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)