core unify ebpf for linux & windows #1495
Workflow file for this run
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: CI Build & Test | |
| on: | |
| push: | |
| branches: ["main", "dev"] | |
| pull_request: | |
| branches: ["main", "dev"] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| concurrency: | |
| group: cicd-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| jobs: | |
| linux_lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install eBPF build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y libbpf-dev libbpfcc-dev clang llvm | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt clippy | |
| - run: cargo fmt --all -- --check -l | |
| - name: Clippy | |
| run: cargo clippy -- -D warnings | |
| - name: cargo-audit | |
| run: | | |
| cargo install cargo-audit | |
| cargo-audit audit | |
| win_lint: | |
| runs-on: windows-2022 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt clippy | |
| - run: cargo fmt --all -- --check -l | |
| - name: Clippy | |
| run: cargo clippy -- -D warnings | |
| - name: cargo-audit | |
| run: | | |
| cargo install cargo-audit | |
| cargo-audit audit | |
| build: | |
| uses: ./.github/workflows/reusable-build.yml | |
| with: | |
| generate_release: false |