Feature/ebpf process termination #70
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Linter Check | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - dev | |
| pull_request: | |
| branches: | |
| - main | |
| - dev | |
| env: | |
| CARGO_TERM_COLOR: always # Ensures colored output in GitHub Actions logs | |
| jobs: | |
| build-and-lint: | |
| name: Build and Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository with submodules | |
| uses: actions/checkout@v4.1.4 | |
| with: | |
| submodules: recursive # This will fetch all submodules recursively | |
| - name: Setup Rust toolchain | |
| run: | | |
| rustup toolchain install stable --profile minimal | |
| rustup toolchain install nightly-2025-04-15 --component rust-src | |
| rustup component add clippy | |
| rustup component add rustfmt | |
| - name: Install build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y linux-headers-$(uname -r) libbpf-dev clang llvm | |
| - name: Check Formatting | |
| run: cargo fmt -- --check | |
| - name: Lint with Clippy | |
| run: cargo clippy -- -D warnings |