Skip to content

Commit 388a37a

Browse files
committed
Add MSRV minimal versions in CI
1 parent 5eecd0b commit 388a37a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/rust.yml

+16
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ on:
66
- main
77
pull_request:
88

9+
env:
10+
RUSTDOCFLAGS: "--default-theme ayu"
11+
RUST_BACKTRACE: "1"
12+
# speed up build by using clang/lld
13+
CC: "clang-14"
14+
CXX: "clang++-14"
15+
LD: "clang-14"
16+
LDFLAGS: "-fuse-ld=lld-14"
17+
RUSTFLAGS: "-C linker=clang-14 -C link-arg=-fuse-ld=lld-14"
18+
919
jobs:
1020
# this checks that the readme created from rustdoc is up to date
1121
readmecheck:
@@ -68,6 +78,12 @@ jobs:
6878
os: [ubuntu-latest, windows-latest, macOS-latest]
6979
steps:
7080
- uses: actions/checkout@v4
81+
- uses: dtolnay/rust-toolchain@nightly
82+
if: matrix.rust.name == 'MSRV'
83+
- name: cargo -Z minimal-versions update
84+
run: |
85+
cargo -Z minimal-versions update
86+
if: matrix.rust.name == 'MSRV'
7187
- uses: dtolnay/rust-toolchain@master
7288
with:
7389
toolchain: ${{matrix.rust.toolchain}}

0 commit comments

Comments
 (0)