Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set msrv to 1.65.0 #111

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
Loading