Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/compile-no-warnings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Rust

"on":
push:
branches: [master]
pull_request:
branches: [master]

env:
CARGO_TERM_COLOR: always

jobs:
basic-compilation:
name: Compilation with no warnings
runs-on: ubuntu-latest
container:
image: quay.io/keylime/keylime-ci:latest
steps:
- uses: actions/checkout@v5
- name: Check compilation (no warnings)
run: RUSTFLAGS="-D warnings" cargo build
- name: Check test compilation (no warnings)
run: RUSTFLAGS="-D warnings" cargo test
- name: Check clippy errors (no warnings included)
run: cargo clippy --all-features --all-targets -- -D clippy::all -D warnings
- name: Check clippy test errors (no warnings included)
run: cargo clippy --all-features --all-targets --tests -- -D clippy::all -D warnings
Loading