29
29
steps :
30
30
- name : Checkout repository
31
31
uses : actions/checkout@v2
32
- - name : Install nightly
32
+ - name : Install Rust nightly
33
33
run : |
34
34
rustup toolchain install nightly
35
35
rustup component add rustfmt --toolchain nightly
69
69
- name : Install dependencies
70
70
if : matrix.os == 'ubuntu-latest'
71
71
run : sudo bash ./.github/workflows/install-deps.sh
72
- - name : Install nightly
72
+ - name : Install Rust nightly
73
73
run : |
74
74
rustup toolchain install nightly
75
75
rustup component add clippy --toolchain nightly
89
89
uses : actions/checkout@v2
90
90
- name : Install dependencies
91
91
run : sudo bash ./.github/workflows/install-deps.sh
92
- - name : Install nightly
92
+ - name : Install Rust nightly
93
93
run : rustup toolchain install nightly
94
94
- name : Restore cargo caches
95
95
uses : Swatinem/rust-cache@v1
@@ -100,7 +100,7 @@ jobs:
100
100
cd ../spdlog-macros
101
101
cargo +nightly rustdoc --all-features --verbose -- -D warnings
102
102
103
- check :
103
+ check-msrv :
104
104
strategy :
105
105
fail-fast : false
106
106
matrix :
@@ -112,17 +112,18 @@ jobs:
112
112
- name : Install dependencies (Linux)
113
113
if : matrix.os == 'ubuntu-latest'
114
114
run : sudo bash ./.github/workflows/install-deps.sh
115
+ - name : Install Rust nightly
116
+ run : rustup toolchain install nightly
115
117
- name : Install Rust ${{ env.rust_minver }}
116
118
run : rustup toolchain install ${{ env.rust_minver }}
117
119
- name : Restore cargo caches
118
120
uses : Swatinem/rust-cache@v1
119
121
- name : Avoid dev-dependencies
120
122
run : |
121
123
# Some dev-dependencies require a newer version of Rust, but it doesn't matter for MSRV check
122
- # And the features they enable for their own dependencies may disrupt `cargo check` reporting obvious errors
123
124
# This is a workaround for the cargo nightly option `-Z avoid-dev-deps`
124
125
perl -pi -e 's/\[dev-dependencies]/[workaround-avoid-dev-deps]/g' ./spdlog/Cargo.toml
125
- - name : Run check for core with Rust latest
126
- run : cargo check --all-features --verbose
127
- - name : Run check for core with Rust ${{ env.rust_minver }} (MSRV check)
128
- run : cargo +${{ env.rust_minver }} check --all-features --verbose
126
+ - name : Downgrade dependencies to minimal versions
127
+ run : cargo +nightly update -Z minimal-versions
128
+ - name : Check MSRV for core with Rust ${{ env.rust_minver }}
129
+ run : cargo +${{ env.rust_minver }} check --locked -- all-features --verbose
0 commit comments