build-bpf.yml 569 B

12345678910111213141516171819202122232425262728293031323334353637
  1. name: build-bpf
  2. on:
  3. push:
  4. branches:
  5. - main
  6. pull_request:
  7. branches:
  8. - main
  9. env:
  10. CARGO_TERM_COLOR: always
  11. jobs:
  12. build:
  13. runs-on: ubuntu-20.04
  14. steps:
  15. - uses: actions/checkout@v2
  16. - uses: actions-rs/toolchain@v1
  17. with:
  18. toolchain: nightly
  19. components: rust-src
  20. override: true
  21. - uses: Swatinem/rust-cache@v1
  22. - name: Pre-requisites
  23. run: cargo install bpf-linker
  24. - name: Build
  25. run: |
  26. pushd ebpf
  27. cargo build --verbose
  28. popd