From 388a37a072a6f89e54022c59c93afc256bfa3c61 Mon Sep 17 00:00:00 2001 From: Gero Gerke Date: Fri, 13 Dec 2024 16:52:08 +0100 Subject: [PATCH] Add MSRV minimal versions in CI --- .github/workflows/rust.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1e44302..ba78169 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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: @@ -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}}