Skip to content

Commit

Permalink
Merge pull request #111 from trifectatechfoundation/set-msrv
Browse files Browse the repository at this point in the history
set msrv to 1.65.0
  • Loading branch information
folkertdev authored Dec 9, 2024
2 parents b397f2a + b8b4b49 commit 1cda2d5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
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

0 comments on commit 1cda2d5

Please sign in to comment.