Skip to content

Commit 99fe504

Browse files
Merge #101
101: CI: Continue if nightly fails r=richardeoin a=richardeoin Also provide clippy lints. Only `deny`/`forbid` lints will fail the build, unless `#[deny(warnings)]` is also specified. Co-authored-by: Richard Meadows <[email protected]>
2 parents 63f64e4 + 9ad7049 commit 99fe504

File tree

16 files changed

+49
-17
lines changed

16 files changed

+49
-17
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ jobs:
1919
- stm32h743v
2020
- stm32h753v
2121
- stm32h747cm7
22-
include: # One additional job, as follows:
23-
- rust: nightly
24-
mcu: stm32h743v
25-
experimental: true
2622

2723
steps:
2824
- uses: actions/checkout@v2

.github/workflows/clippy.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
on:
2+
push:
3+
branches: [ staging, trying, master ]
4+
pull_request:
5+
6+
name: Clippy
7+
8+
jobs:
9+
clippy_check:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions-rs/toolchain@v1
14+
with:
15+
components: clippy
16+
toolchain: stable
17+
target: thumbv7em-none-eabihf
18+
override: true
19+
- uses: actions-rs/clippy-check@v1
20+
with:
21+
token: ${{ secrets.GITHUB_TOKEN }}
22+
args: --examples --target thumbv7em-none-eabihf --features=rt,stm32h743v

.github/workflows/nightly.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
on:
2+
push:
3+
branches: [ master ] # Do not run on staging / trying
4+
pull_request:
5+
6+
name: Nightly rust
7+
8+
jobs:
9+
ci:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions-rs/toolchain@v1
14+
with:
15+
profile: minimal
16+
toolchain: nightly
17+
target: thumbv7em-none-eabihf
18+
override: true
19+
- uses: actions-rs/cargo@v1
20+
with:
21+
use-cross: true
22+
command: build
23+
args: --verbose --release --examples --target thumbv7em-none-eabihf --features rt,stm32h743v
24+
- uses: actions-rs/cargo@v1
25+
with:
26+
command: test
27+
args: --lib --target x86_64-unknown-linux-gnu --features rt,stm32h743v

examples/adc.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
extern crate panic_itm;
66

7-
use cortex_m;
87
use cortex_m_rt::entry;
98

109
use stm32h7xx_hal::{adc, delay::Delay, pac, prelude::*};

examples/blinky.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
extern crate panic_itm;
77

8-
use cortex_m;
98
use cortex_m_rt::entry;
109
use stm32h7xx_hal::hal::digital::v2::OutputPin;
1110
use stm32h7xx_hal::{pac, prelude::*};

examples/blinky_random.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
extern crate panic_itm;
77

8-
use cortex_m;
98
use cortex_m_rt::entry;
109
use stm32h7xx_hal::hal::digital::v2::ToggleableOutputPin;
1110
use stm32h7xx_hal::{pac, prelude::*};

examples/blinky_timer.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ extern crate panic_itm;
88
#[macro_use(block)]
99
extern crate nb;
1010

11-
use cortex_m;
1211
use cortex_m_rt::entry;
1312
use stm32h7xx_hal::hal::digital::v2::{OutputPin, ToggleableOutputPin};
1413
use stm32h7xx_hal::{pac, prelude::*};

examples/dac.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
extern crate panic_itm;
77

8-
use cortex_m;
98
use cortex_m::asm;
109
use cortex_m_rt::entry;
1110
use stm32h7xx_hal::hal::Direction;

examples/mco.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
extern crate panic_itm;
77

8-
use cortex_m;
98
use cortex_m_rt::entry;
109
use stm32h7xx_hal::{gpio::Speed, pac, prelude::*, rcc::PllConfigStrategy};
1110

examples/pwm.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
extern crate panic_itm;
77

8-
use cortex_m;
98
use cortex_m::asm;
109
use cortex_m_rt::entry;
1110
use stm32h7xx_hal::{pac, prelude::*};

0 commit comments

Comments
 (0)