Skip to content

Commit 24952f8

Browse files
authored
Merge pull request #19 from jannic-dev-forks/define-msrv-and-fix-ci
Set MSRV to 1.81.0 and run clippy on that version
2 parents cfc36ff + 50e6f9a commit 24952f8

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

.github/workflows/build_and_test.yml

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ on: [push, pull_request]
22
name: Build and Test check
33
jobs:
44
check-arm:
5-
name: cargo-check
5+
name: cargo-check (ARM)
66
runs-on: ubuntu-24.04
77
steps:
88
- uses: actions/checkout@v4
@@ -11,11 +11,31 @@ jobs:
1111
target: thumbv8m.main-none-eabihf
1212
- run: cargo build --target=thumbv8m.main-none-eabihf
1313
check-riscv:
14-
name: cargo-check
14+
name: cargo-check (RISC-V)
1515
runs-on: ubuntu-24.04
1616
steps:
1717
- uses: actions/checkout@v4
1818
- uses: dtolnay/rust-toolchain@stable
1919
with:
2020
target: riscv32imac-unknown-none-elf
2121
- run: cargo build --target=riscv32imac-unknown-none-elf
22+
check-arm-msrv:
23+
name: cargo-check on MSRV (ARM)
24+
runs-on: ubuntu-24.04
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: dtolnay/rust-toolchain@master
28+
with:
29+
target: thumbv8m.main-none-eabihf
30+
toolchain: 1.81.0
31+
- run: cargo build --target=thumbv8m.main-none-eabihf
32+
check-riscv-msrv:
33+
name: cargo-check on MSRV (RISC-V)
34+
runs-on: ubuntu-24.04
35+
steps:
36+
- uses: actions/checkout@v4
37+
- uses: dtolnay/rust-toolchain@master
38+
with:
39+
target: riscv32imac-unknown-none-elf
40+
toolchain: 1.81.0
41+
- run: cargo build --target=riscv32imac-unknown-none-elf

.github/workflows/clippy.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ jobs:
77
RUSTFLAGS: "-D warnings -Aclippy::needless_lifetimes"
88
steps:
99
- uses: actions/checkout@v4
10-
- uses: dtolnay/rust-toolchain@stable
10+
- uses: dtolnay/rust-toolchain@master
1111
with:
1212
target: thumbv8m.main-none-eabihf
13+
toolchain: 1.81.0
1314
components: clippy
1415
- run: cargo clippy --target=thumbv8m.main-none-eabihf
1516
clippy-check-riscv:
@@ -18,8 +19,9 @@ jobs:
1819
RUSTFLAGS: "-D warnings -Aclippy::needless_lifetimes"
1920
steps:
2021
- uses: actions/checkout@v4
21-
- uses: dtolnay/rust-toolchain@stable
22+
- uses: dtolnay/rust-toolchain@master
2223
with:
2324
target: riscv32imac-unknown-none-elf
25+
toolchain: 1.81.0
2426
components: clippy
2527
- run: cargo clippy --target=riscv32imac-unknown-none-elf

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ license = "BSD-3-Clause"
77
name = "rp235x-pac"
88
repository = "https://github.com/rp-rs/rp235x-pac"
99
version = "0.1.0"
10+
rust-version = "1.81.0"
1011

1112
[package.metadata.docs.rs]
1213
features = ["rt"]

0 commit comments

Comments
 (0)