Skip to content

Commit 4d868ef

Browse files
committed
[CI] test different rust toolchains
1 parent df37667 commit 4d868ef

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

.github/workflows/test.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,24 @@ jobs:
5050
- name: fmt
5151
run: cargo fmt -- --check
5252
- name: clippy
53-
run: cargo clippy -- -D warnings
53+
run: cargo clippy -- -D warnings
54+
55+
rust-version:
56+
runs-on: ubuntu-20.04
57+
strategy:
58+
fail-fast: false
59+
matrix:
60+
toolchain: [ "1.41.1", "1.45.0", "1.46.0", "stable", "nightly" ]
61+
62+
steps:
63+
- uses: actions/checkout@v2
64+
- uses: Swatinem/rust-cache@v1.2.0
65+
with:
66+
key: ${{ matrix.version }}
67+
- uses: actions-rs/toolchain@v1
68+
with:
69+
toolchain: ${{ matrix.toolchain }}
70+
override: true
71+
- uses: actions-rs/cargo@v1
72+
with:
73+
command: build

0 commit comments

Comments
 (0)