Skip to content

Commit

Permalink
Add MSRV minimal versions in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Empty2k12 committed Dec 13, 2024
1 parent 5eecd0b commit 388a37a
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ on:
- main
pull_request:

env:
RUSTDOCFLAGS: "--default-theme ayu"
RUST_BACKTRACE: "1"
# speed up build by using clang/lld
CC: "clang-14"
CXX: "clang++-14"
LD: "clang-14"
LDFLAGS: "-fuse-ld=lld-14"
RUSTFLAGS: "-C linker=clang-14 -C link-arg=-fuse-ld=lld-14"

jobs:
# this checks that the readme created from rustdoc is up to date
readmecheck:
Expand Down Expand Up @@ -68,6 +78,12 @@ jobs:
os: [ubuntu-latest, windows-latest, macOS-latest]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
if: matrix.rust.name == 'MSRV'
- name: cargo -Z minimal-versions update
run: |
cargo -Z minimal-versions update
if: matrix.rust.name == 'MSRV'
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{matrix.rust.toolchain}}
Expand Down

0 comments on commit 388a37a

Please sign in to comment.