reenabled clippy in CI/CD
All checks were successful
Rust/va416xx/pipeline/head This commit looks good

- Bumped version to v0.1.1
This commit is contained in:
Robin Müller 2021-12-10 18:03:26 +01:00
parent 45b1680254
commit 2cdc2a8128
4 changed files with 35 additions and 30 deletions

View File

@ -36,28 +36,28 @@ jobs:
command: fmt
args: --all -- --check
# clippy:
# name: Clippy
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# target: thumbv7em-none-eabihf
# override: true
# - run: rustup component add clippy
# - uses: actions-rs/cargo@v1
# with:
# use-cross: true
# command: clippy
# args: --target thumbv7em-none-eabihf -- -D warnings
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
target: thumbv7em-none-eabihf
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: clippy
args: --target thumbv7em-none-eabihf -- -D warnings
ci:
if: ${{ success() }}
# all new jobs must be added to this list
needs: [check, fmt] # , clippy
needs: [check, fmt, clippy]
runs-on: ubuntu-latest
steps:
- name: CI succeeded

View File

@ -8,6 +8,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
## [unreleased]
## [v0.1.1]
- Clippy issue fixed by regenerating PAC with patched `svd2rust`:
https://github.com/rust-embedded/svd2rust/pull/558
## [v0.1.0]
- Clippy currently complains about unsound code which should still work.

View File

@ -1,6 +1,6 @@
[package]
name = "va416xx"
version = "0.1.0"
version = "0.1.1"
authors = ["Robin Mueller <muellerr@irs.uni-stuttgart.de>"]
edition = "2021"
description = "PAC for the Vorago VA416xx family of MCUs"

View File

@ -2,17 +2,17 @@ pipeline {
agent any
stages {
// stage('Clippy') {
// agent {
// dockerfile {
// dir 'automation'
// reuseNode true
// }
// }
// steps {
// sh 'cargo clippy'
// }
// }
stage('Clippy') {
agent {
dockerfile {
dir 'automation'
reuseNode true
}
}
steps {
sh 'cargo clippy'
}
}
stage('Rustfmt') {
agent {
dockerfile {