Skip to content

Commit

Permalink
Add CI job to check MSRV (#23)
Browse files Browse the repository at this point in the history
* Verify MSRV in CI

* Update CI

* Add MSRV note to README
FreezyLemon authored Apr 9, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent f51dd7f commit be5c454
Showing 4 changed files with 1,176 additions and 6 deletions.
24 changes: 19 additions & 5 deletions .github/workflows/crate.yml
Original file line number Diff line number Diff line change
@@ -7,17 +7,31 @@ on:
branches: ["main"]

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"

jobs:
msrv:
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v4
# rust-version from Cargo.toml
- name: Install Rust 1.61.0
uses: dtolnay/[email protected]
- name: Use predefined lockfile
run: mv Cargo.lock.MSRV Cargo.lock
- name: Build
run: cargo check --locked

build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Lint
run: cargo clippy --verbose -- -D warnings
run: cargo clippy
- name: Build
run: cargo build --verbose
run: cargo build
- name: Run tests
run: cargo test --verbose
run: cargo test
1,149 changes: 1,149 additions & 0 deletions Cargo.lock.MSRV

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -4,12 +4,14 @@ description = "Conversions between YUV (YCbCr), XYB, and other colorspaces"
version = "0.4.0"
edition = "2021"
license = "MIT"
rust-version = "1.61.0"
documentation = "https://docs.rs/yuvxyb"
homepage = "https://github.com/rust-av/yuvxyb"
repository = "https://github.com/rust-av/yuvxyb"
exclude = ["test_data", "yuvxyb-dump"]

# When changing MSRV: Also update README and .github/workflows/crate.yml
rust-version = "1.61.0"

[features]
default = ["fastmath"]
fastmath = []
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -7,3 +7,8 @@
Rust crate for conversion between YUV and XYB colorspaces.
Intended to properly handle 8-16 bit YUV input, full and limited range,
as well as all widely-used matrix coefficients and transfer characteristics.

## Minimum supported Rust version (MSRV)

This crate requires a Rust version of 1.61.0 or higher. Increases in MSRV will result in a semver PATCH version increase.

0 comments on commit be5c454

Please sign in to comment.