From b8b4b4957d62bf57f6c221622582dfc4b6056ebe Mon Sep 17 00:00:00 2001 From: Folkert de Vries Date: Mon, 9 Dec 2024 10:43:52 +0100 Subject: [PATCH] set msrv to 1.65.0 --- .github/workflows/main.yml | 14 +++++++++++++- Cargo.toml | 1 + 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4d528339..dec3e801 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -7,7 +7,7 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - build: [stable, beta, nightly, macos, win32, win64, win32-gnu, win64-gnu] + build: [stable, beta, nightly, msrv, macos, win32, win64, win32-gnu, win64-gnu] include: - build: stable os: ubuntu-latest @@ -18,6 +18,9 @@ jobs: - build: nightly os: ubuntu-latest rust: nightly + - build: msrv + os: ubuntu-latest + rust: nightly - build: macos os: macos-latest rust: stable @@ -38,6 +41,15 @@ jobs: - name: Install Rust (rustup) run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }} shell: bash + if: matrix.build != 'msrv' + - name: Install Rust (rustup) + run: | + # extract the MSRV from the Cargo.toml's `rust-version` + MSRV=$(awk -F'"' '/rust-version/ {print $2}' Cargo.toml) + TOOLCHAIN="${MSRV}-x86_64-unknown-linux-gnu" + rustup update $TOOLCHAIN --no-self-update && rustup default $TOOLCHAIN + shell: bash + if: matrix.build == 'msrv' - run: cargo test rustfmt: diff --git a/Cargo.toml b/Cargo.toml index fe992390..3ac53bdc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,6 +13,7 @@ Bindings to libbzip2 for bzip2 compression and decompression exposed as Reader/Writer streams. """ categories = ["compression", "api-bindings"] +rust-version = "1.65.0" # MSRV [workspace]