-
-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (62 loc) · 1.96 KB
/
msrv.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: "ci-msrv"
on:
pull_request:
push:
branches:
- master
- main
- staging # for Bors
- trying # for Bors
schedule:
- cron: '00 05 * * *'
jobs:
msrv:
name: msrv
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: checkout_repo
uses: actions/checkout@v2
- name: install_rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
profile: minimal
- name: install_cargo_msrv
run: cargo install cargo-msrv
- name: version_of_cargo_msrv
run: cargo msrv --version # as of writing: 0.14.0 (required for verify)
- name: run_cargo_msrv_verify
run: cargo msrv --output-format json verify -- cargo check --all-features
- name: run_cargo_msrv
if: ${{ failure() }}
run: cargo msrv --output-format json -- cargo check --all-features
msrv-workspace-crates:
name: msrv-workspace-crates
runs-on: ubuntu-latest
continue-on-error: true
strategy:
matrix:
crate: [
"crates/rust-releases-channel-manifests",
"crates/rust-releases-core",
"crates/rust-releases-io",
"crates/rust-releases-rust-changelog",
"crates/rust-releases-rust-dist",
"crates/rust-releases-rust-dist-with-cli"
]
steps:
- name: checkout_repo
uses: actions/checkout@v2
- name: install_rust
uses: dtolnay/rust-toolchain@stable
- name: install_cargo_msrv
run: cargo install cargo-msrv
- name: version_of_cargo_msrv
run: cargo msrv --version # as of writing: 0.14.0 (required for verify)
- name: run_cargo_msrv_verify
run: cargo msrv --output-format json --path ${{ matrix.crate }} verify -- cargo check --all-features
- name: run_cargo_msrv
if: ${{ failure() }}
run: cargo msrv --output-format json --path ${{ matrix.crate }} -- cargo check --all-features