Skip to content

Commit

Permalink
build: declare and check msrv
Browse files Browse the repository at this point in the history
  • Loading branch information
ystreet committed Mar 5, 2024
1 parent 63ec16a commit 46b6b93
Show file tree
Hide file tree
Showing 3 changed files with 292 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,32 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
toolchain: ['1.65', stable]

steps:
- uses: actions/checkout@v2
- name: Install ${{ matrix.toolchain }}
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- name: Use MSRV Cargo.lock
run: cp Cargo.lock.msrv Cargo.lock
if: matrix.toolchain == '1.65'
- name: Build
run: cargo build --verbose
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run tests
run: cargo test --verbose
clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: clippy
run: cargo clippy --verbose
270 changes: 270 additions & 0 deletions Cargo.lock.msrv

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ keywords = ["multimedia", "captions"]
categories = ["multimedia::encoding"]
documentation = "https://docs.rs/cdp-types"
repository = "https://github.com/ystreet/cdp-types"
rust-version = "1.65.0"

[dependencies]
log = "0.4"
Expand Down

0 comments on commit 46b6b93

Please sign in to comment.