Skip to content

Commit

Permalink
Set MSRV and add CI job to check it
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbishop authored and phip1611 committed Mar 26, 2024
1 parent 834d557 commit 764f0a1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,19 @@ on:
- cron: '0 0 * * 4'

jobs:
msrv:
name: MSRV
runs-on: ubuntu-latest
env:
rust_ver: "1.56"
steps:
- name: Checkout sources
uses: actions/checkout@v3
- run: rustup toolchain install $rust_ver --profile minimal --no-self-update
- run: rustup default $rust_version
- uses: Swatinem/rust-cache@v2
- run: cargo test

check:
name: Check
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ keywords = ["ucs2", "no-std", "encoding"]
categories = ["encoding", "no-std"]
license = "MPL-2.0"
edition = "2021"
rust-version = "1.56"

[dependencies]
bit_field = "0.10"
Expand Down

0 comments on commit 764f0a1

Please sign in to comment.