Skip to content

eBPF: add compiled release mode build #115

eBPF: add compiled release mode build

eBPF: add compiled release mode build #115

Workflow file for this run

name: build-test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-test:
name: build-test
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install Rust nightly
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
targets: x86_64-unknown-linux-musl
components: rustfmt, clippy, miri, rust-src
- name: Install Rust stable
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: x86_64-unknown-linux-musl
components: rustfmt, clippy
- name: Install bpf-linker
run: |
cargo install bpf-linker --git https://github.com/noboruma/bpf-linker
- name: Build eBPF code
run: |
cargo xtask build-ebpf
- name: Build user space code
run: |
cargo build
- name: Run tests
run: |
cargo test
- name: Check formatting
run: |
cargo fmt --all -- --check
- name: Run clippy
run: |
cargo clippy --workspace -- --deny warnings
- name: Run miri
run: |
cargo +nightly miri test --all-targets