Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
eldruin committed Aug 2, 2024
1 parent 4bd78bb commit 1ef708d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 36 deletions.
33 changes: 8 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,30 +29,13 @@ jobs:
experimental: true

steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: ${{ matrix.rust }}
target: thumbv7em-none-eabihf
override: true
- uses: actions-rs/cargo@v1
with:
command: build
args: --features=${{ matrix.mcu }},usb_fs --examples
- uses: actions-rs/cargo@v1
with:
command: build
args: --features=${{ matrix.mcu }},usb_fs --examples --release
- uses: actions-rs/cargo@v1
with:
command: build
args: --features=${{ matrix.mcu }},rt,usb_fs --examples
- uses: actions-rs/cargo@v1
with:
command: build
args: --features=${{ matrix.mcu }},rt,usb_hs --examples
- uses: actions-rs/cargo@v1
with:
command: test
args: --features=${{ matrix.mcu }} --target x86_64-unknown-linux-gnu --lib
targets: thumbv7em-none-eabihf
- run: cargo build --features=${{ matrix.mcu }},usb_fs --examples
- run: cargo build --features=${{ matrix.mcu }},usb_fs --examples --release
- run: cargo build --features=${{ matrix.mcu }},rt,usb_fs --examples
- run: cargo build --features=${{ matrix.mcu }},rt,usb_hs --examples
- run: cargo test --features=${{ matrix.mcu }} --target x86_64-unknown-linux-gnu --lib
18 changes: 7 additions & 11 deletions .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@ jobs:
clippy_check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
components: clippy
toolchain: stable
target: thumbv7em-none-eabihf
override: true
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
# TODO: For now, allow clippy::erasing_op
# TODO: Enable clippy on examples via `--examples`
args: --target thumbv7em-none-eabihf --features=rt,stm32f746 -- --allow clippy::erasing_op
toolchain: 1.80.0
targets: thumbv7em-none-eabihf
# TODO: For now, allow clippy::erasing_op
# TODO: Enable clippy on examples via `--examples`
- run: cargo clippy --target thumbv7em-none-eabihf --features=rt,stm32f746 -- --allow clippy::erasing_op

0 comments on commit 1ef708d

Please sign in to comment.