-
-
Notifications
You must be signed in to change notification settings - Fork 33
91 lines (87 loc) · 2.76 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: "ci-msrv"
on:
pull_request:
push:
branches:
- master
- main
merge_group:
schedule:
- cron: '00 06 * * *'
jobs:
# MSRV check and e2e test
msrv:
name: msrv
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
build: [ ubuntu, macos ] # [, windows] ... Disabled Windows for now, see #1036
include:
- build: ubuntu
os: ubuntu-latest
- build: macos
os: macos-latest
# - build: windows
# os: windows-latest
continue-on-error: true
steps:
- name: checkout_repo
uses: actions/checkout@v4
- name: install_rust
uses: dtolnay/rust-toolchain@stable
- name: install_cargo_msrv
if: matrix.build == 'ubuntu'
run: cargo install cargo-msrv
- name: install_cargo_msrv_no_default
if: matrix.build != 'ubuntu'
run: cargo install cargo-msrv --no-default-features
- name: version_of_cargo_msrv
run: cargo msrv --version
- name: run_cargo_msrv
run: cargo msrv verify --output-format json
- name: run_cargo_msrv_on_verify_failure
if: ${{ failure() }}
run: cargo msrv find --output-format json
# The same as the 'msrv' job, except it takes the latest release, including beta releases
msrv_pre_release:
name: msrv_pre_release
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: checkout_repo
uses: actions/checkout@v4
- name: install_rust
uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@v2
with:
tool: cargo-binstall
- name: install_cargo_msrv_bin
run: cargo binstall --no-confirm cargo-msrv
- name: version_of_cargo_msrv
run: cargo msrv --version
- name: run_cargo_msrv
run: cargo msrv verify --output-format json
- name: run_cargo_msrv_on_verify_failure
if: ${{ failure() }}
run: cargo msrv find --output-format json
# The same as the 'msrv' job, except it takes the latest development branch, as a form of test
# we don't use --all-features here!
msrv_development:
name: msrv_development
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: checkout_repo
uses: actions/checkout@v4
- name: install_rust
uses: dtolnay/rust-toolchain@stable
- name: install_cargo_msrv
run: cargo install --git https://github.com/foresterre/cargo-msrv.git cargo-msrv
- name: version_of_cargo_msrv
run: cargo msrv --version
- name: run_cargo_msrv
run: cargo msrv verify --output-format json
- name: run_cargo_msrv_on_verify_failure
if: ${{ failure() }}
run: cargo msrv find --output-format json