From 5e1b7d3eaa37420ae70823816636ff745a105cc3 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 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 1e44302..2a86b1c 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,13 @@ 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: | + set -x + cargo -Z minimal-versions update + if: matrix.rust.name == 'MSRV' - uses: dtolnay/rust-toolchain@master with: toolchain: ${{matrix.rust.toolchain}}