Skip to content

Commit 764f0a1

Browse files
nicholasbishopphip1611
authored andcommitted
Set MSRV and add CI job to check it
1 parent 834d557 commit 764f0a1

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.github/workflows/rust.yml

+13
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,19 @@ on:
1111
- cron: '0 0 * * 4'
1212

1313
jobs:
14+
msrv:
15+
name: MSRV
16+
runs-on: ubuntu-latest
17+
env:
18+
rust_ver: "1.56"
19+
steps:
20+
- name: Checkout sources
21+
uses: actions/checkout@v3
22+
- run: rustup toolchain install $rust_ver --profile minimal --no-self-update
23+
- run: rustup default $rust_version
24+
- uses: Swatinem/rust-cache@v2
25+
- run: cargo test
26+
1427
check:
1528
name: Check
1629
runs-on: ubuntu-latest

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ keywords = ["ucs2", "no-std", "encoding"]
88
categories = ["encoding", "no-std"]
99
license = "MPL-2.0"
1010
edition = "2021"
11+
rust-version = "1.56"
1112

1213
[dependencies]
1314
bit_field = "0.10"

0 commit comments

Comments
 (0)