Skip to content

Commit 144145e

Browse files
committed
Pin tokio to 1.14.0 in CI for older rustc's
1 parent 88a86d1 commit 144145e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/build.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ jobs:
4747
- toolchain: 1.41.0
4848
build-no-std: false
4949
- toolchain: 1.45.2
50+
build-net-old-tokio: true
5051
build-net-tokio: true
5152
build-no-std: false
5253
coverage: true
@@ -62,6 +63,9 @@ jobs:
6263
toolchain: ${{ matrix.toolchain }}
6364
override: true
6465
profile: minimal
66+
- name: Pin tokio to 1.14 for Rust 1.45
67+
if: "matrix.build-net-old-tokio"
68+
run: cargo update -p tokio --precise "1.14.0" --verbose
6569
- name: Build on Rust ${{ matrix.toolchain }} with net-tokio
6670
if: "matrix.build-net-tokio && !matrix.coverage"
6771
run: cargo build --verbose --color always
@@ -271,7 +275,7 @@ jobs:
271275
linting:
272276
runs-on: ubuntu-latest
273277
env:
274-
TOOLCHAIN: 1.45.2
278+
TOOLCHAIN: 1.47.0
275279
steps:
276280
- name: Checkout source code
277281
uses: actions/checkout@v2

0 commit comments

Comments
 (0)