Skip to content

Commit 4a5e13c

Browse files
committed
deny warnings on check and run clippy afterwards
1 parent 58ab077 commit 4a5e13c

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ on:
77
name: Continuous Integration
88

99
jobs:
10+
ci:
11+
name: CI
12+
runs-on: ubuntu-latest
13+
needs: [build, test, test-strict]
14+
if: always()
15+
steps:
16+
- name: Done
17+
run: jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
18+
1019
# check if the project builds with MSRV, stable and nighly
1120
build:
1221
name: "Build (${{ matrix.name || matrix.rust }})"
@@ -30,6 +39,9 @@ jobs:
3039
with:
3140
toolchain: ${{ matrix.rust }}
3241
components: clippy
42+
- run: cargo check
43+
env:
44+
RUSTFLAGS: -D warnings
3345
- run: cargo clippy
3446

3547
test:

svd-parser/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
//! - [SVD Schema file](https://www.keil.com/pack/doc/CMSIS/SVD/html/schema_1_2_gr.html)
2020
//! - [SVD file database](https://github.com/posborne/cmsis-svd/tree/master/data)
2121
//! - [Sample SVD file](https://www.keil.com/pack/doc/CMSIS/SVD/html/svd_Example_pg.html)
22-
23-
#![deny(warnings)]
24-
22+
//!
2523
//! Parse traits.
2624
//! These support parsing of SVD types from XML
2725

0 commit comments

Comments
 (0)