Pin tokio to 1.26 on windows to fix CI
authorElias Rohrer <ero@tnull.de>
Fri, 10 Mar 2023 21:24:39 +0000 (22:24 +0100)
committerElias Rohrer <ero@tnull.de>
Sun, 12 Mar 2023 13:12:21 +0000 (14:12 +0100)
.github/workflows/build.yml
lightning-block-sync/Cargo.toml
lightning-net-tokio/Cargo.toml

index 10f71bda07ccb662432f6093df9be55e76cbc3a2..100441d2be200cb85e6e70b296691851f9edb818 100644 (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
index 69c64a14f1e3006cef97bd484ff28ab18c684e98..894c3b528df83f500683eb0e1c53a8fa7560fffb 100644 (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" ] }
index 203fbc9b815c5f96a743eea259eaec656a1d45b0..6250628d24ae8786971ffba6b46e7d3b093a71ad 100644 (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"] }