Skip to content

Commit dc223a1

Browse files
committed
chore Cargo - Set rust-version & add matrix for building and testing in MSRV
Signed-off-by: Lachezar Lechev <[email protected]>
1 parent cad9505 commit dc223a1

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/rust.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,25 @@ jobs:
66
formatting:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v1
9+
- uses: actions/checkout@v4
10+
- uses: dtolnay/rust-toolchain@stable
11+
with:
12+
components: rustfmt
1013
- name: Check formatting
1114
run: cargo fmt -- --check
1215

1316
build-test:
1417
runs-on: ubuntu-latest
1518
strategy:
1619
matrix:
20+
# Always run MSRV too!
21+
rust: ["stable", "1.76"]
1722
features: ['log', 'defmt-log', '""']
1823
steps:
19-
- uses: actions/checkout@v1
24+
- uses: actions/checkout@v4
25+
- uses: dtolnay/rust-toolchain@master
26+
with:
27+
toolchain: ${{ matrix.rust }}
2028
- name: Build
2129
run: cargo build --no-default-features --features ${{matrix.features}} --verbose
2230
- name: Run Tests

Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ readme = "README.md"
1010
repository = "https://github.com/rust-embedded-community/embedded-sdmmc-rs"
1111
version = "0.8.0"
1212

13+
# Make sure to update the CI too!
14+
rust-version = "1.76"
15+
1316
[dependencies]
1417
byteorder = {version = "1", default-features = false}
1518
defmt = {version = "0.3", optional = true}

0 commit comments

Comments
 (0)