Skip to content

Commit c53a2b3

Browse files
committed
Test features on MSRV on CI
1 parent dbe325d commit c53a2b3

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

.github/workflows/ci.yml

+33-1
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,40 @@ jobs:
6565
command: test
6666
args: --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}
6767

68+
ci-linux-msrv:
69+
name: CI
70+
runs-on: ubuntu-latest
71+
strategy:
72+
matrix:
73+
rust: [1.46.0]
74+
FEATURES: ["", "--features=async-tokio", "--features=mio-evented"]
75+
TARGET:
76+
- x86_64-unknown-linux-gnu
77+
78+
steps:
79+
- uses: actions/checkout@v2
80+
- uses: actions-rs/toolchain@v1
81+
with:
82+
profile: minimal
83+
toolchain: ${{ matrix.rust }}
84+
target: ${{ matrix.TARGET }}
85+
override: true
86+
87+
- name: Build
88+
uses: actions-rs/cargo@v1
89+
with:
90+
command: build
91+
args: --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}
92+
93+
- name: Test
94+
uses: actions-rs/cargo@v1
95+
with:
96+
use-cross: true
97+
command: test
98+
args: --target=${{ matrix.TARGET }} ${{ matrix.FEATURES }}
99+
68100
ci-macos:
69-
name: CI-macOS
101+
name: CI
70102
runs-on: macos-11
71103

72104
strategy:

0 commit comments

Comments
 (0)