Skip to content

Commit 1ffaa0c

Browse files
committed
Make compilation to fail on warnings
Signed-off-by: Sergio Arroutbi <[email protected]>
1 parent 07463b8 commit 1ffaa0c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Rust
3+
4+
"on":
5+
push:
6+
branches: [master]
7+
pull_request:
8+
branches: [master]
9+
10+
env:
11+
CARGO_TERM_COLOR: always
12+
13+
jobs:
14+
basic-compilation:
15+
name: Compilation with no warnings
16+
runs-on: ubuntu-latest
17+
container:
18+
image: quay.io/keylime/keylime-ci:latest
19+
steps:
20+
- uses: actions/checkout@v5
21+
- name: Check compilation (no warnings)
22+
run: RUSTFLAGS="-D warnings" cargo build
23+
- name: Check test compilation (no warnings)
24+
run: RUSTFLAGS="-D warnings" cargo test

0 commit comments

Comments
 (0)