Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 7bc8055

Browse files
fix ci for MSRV
1 parent 04790f0 commit 7bc8055

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,16 @@ jobs:
66
build:
77
strategy:
88
matrix:
9-
toolchain: [ 1.48, stable, beta ]
9+
platform: [ ubuntu-latest ]
10+
toolchain: [ stable, beta ]
1011
include:
1112
- toolchain: stable
1213
check-fmt: true
13-
runs-on: ubuntu-latest
14+
- toolchain: 1.48.0
15+
platform: ubuntu-latest
16+
msrv: true
17+
18+
runs-on: ${{ matrix.platform }}
1419
steps:
1520
- name: Checkout source code
1621
uses: actions/checkout@v2
@@ -20,6 +25,12 @@ jobs:
2025
toolchain: ${{ matrix.toolchain }}
2126
override: true
2227
profile: minimal
28+
- name: Pin tokio for MSRV
29+
if: matrix.msrv
30+
run: cargo update -p tokio --precise "1.14.0" --verbose
31+
- name: Pin serde for MSRV
32+
if: matrix.msrv
33+
run: cargo update -p serde --precise "1.0.156" --verbose
2334
- name: Build on Rust ${{ matrix.toolchain }}
2435
run: cargo build --verbose --color always
2536
- name: Check formatting

0 commit comments

Comments
 (0)