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

Add CI job to check MSRV #23

Merged
merged 3 commits into from
Apr 9, 2024
Merged
Changes from 1 commit
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
Next Next commit
Add MSRV job to CI
FreezyLemon committed Apr 9, 2024

Verified

This commit was signed with the committer’s verified signature.
FreezyLemon FreezyLemon
commit 64e579649fa50b7e81c6a46048ef66564d4a7e9e
15 changes: 15 additions & 0 deletions .github/workflows/crate.yml
Original file line number Diff line number Diff line change
@@ -7,9 +7,24 @@ on:
branches: ["main"]

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

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

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 .github/workflows/crate.yml
rust-version = "1.61.0"

[features]
default = ["fastmath"]
fastmath = []