Skip to content

Commit 1ef708d

Browse files
committed
Update CI
1 parent 4bd78bb commit 1ef708d

File tree

2 files changed

+15
-36
lines changed

2 files changed

+15
-36
lines changed

‎.github/workflows/ci.yml

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,30 +29,13 @@ jobs:
2929
experimental: true
3030

3131
steps:
32-
- uses: actions/checkout@v2
33-
- uses: actions-rs/toolchain@v1
32+
- uses: actions/checkout@v4
33+
- uses: dtolnay/rust-toolchain@master
3434
with:
35-
profile: minimal
3635
toolchain: ${{ matrix.rust }}
37-
target: thumbv7em-none-eabihf
38-
override: true
39-
- uses: actions-rs/cargo@v1
40-
with:
41-
command: build
42-
args: --features=${{ matrix.mcu }},usb_fs --examples
43-
- uses: actions-rs/cargo@v1
44-
with:
45-
command: build
46-
args: --features=${{ matrix.mcu }},usb_fs --examples --release
47-
- uses: actions-rs/cargo@v1
48-
with:
49-
command: build
50-
args: --features=${{ matrix.mcu }},rt,usb_fs --examples
51-
- uses: actions-rs/cargo@v1
52-
with:
53-
command: build
54-
args: --features=${{ matrix.mcu }},rt,usb_hs --examples
55-
- uses: actions-rs/cargo@v1
56-
with:
57-
command: test
58-
args: --features=${{ matrix.mcu }} --target x86_64-unknown-linux-gnu --lib
36+
targets: thumbv7em-none-eabihf
37+
- run: cargo build --features=${{ matrix.mcu }},usb_fs --examples
38+
- run: cargo build --features=${{ matrix.mcu }},usb_fs --examples --release
39+
- run: cargo build --features=${{ matrix.mcu }},rt,usb_fs --examples
40+
- run: cargo build --features=${{ matrix.mcu }},rt,usb_hs --examples
41+
- run: cargo test --features=${{ matrix.mcu }} --target x86_64-unknown-linux-gnu --lib

‎.github/workflows/clippy.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,12 @@ jobs:
66
clippy_check:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v2
10-
- uses: actions-rs/toolchain@v1
9+
- uses: actions/checkout@v4
10+
- uses: dtolnay/rust-toolchain@master
1111
with:
1212
components: clippy
13-
toolchain: stable
14-
target: thumbv7em-none-eabihf
15-
override: true
16-
- uses: actions-rs/clippy-check@v1
17-
with:
18-
token: ${{ secrets.GITHUB_TOKEN }}
19-
# TODO: For now, allow clippy::erasing_op
20-
# TODO: Enable clippy on examples via `--examples`
21-
args: --target thumbv7em-none-eabihf --features=rt,stm32f746 -- --allow clippy::erasing_op
13+
toolchain: 1.80.0
14+
targets: thumbv7em-none-eabihf
15+
# TODO: For now, allow clippy::erasing_op
16+
# TODO: Enable clippy on examples via `--examples`
17+
- run: cargo clippy --target thumbv7em-none-eabihf --features=rt,stm32f746 -- --allow clippy::erasing_op

0 commit comments

Comments
 (0)