-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (35 loc) · 932 Bytes
/
rust-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Rust CI
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
test:
strategy:
fail-fast: true
matrix:
# 1.78 is the MSRV for the crate
rust: ['nightly', 'beta', 'stable', '1.78']
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Install ${{matrix.rust}} toolchain
if: matrix.rust == 'nightly'
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust}}
components: miri rustfmt clippy
- name: Install ${{matrix.rust}} toolchain
if: matrix.rust != 'nightly'
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust}}
components: rustfmt clippy
- name: Run full test script
run: ./scripts/full-test.sh "${{matrix.rust}}"