build-aya-bpf.yml 982 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. name: build-aya-bpf
  2. on:
  3. push:
  4. branches:
  5. - main
  6. - ci
  7. pull_request:
  8. branches:
  9. - main
  10. env:
  11. CARGO_TERM_COLOR: always
  12. jobs:
  13. build:
  14. strategy:
  15. matrix:
  16. arch:
  17. - x86_64
  18. - aarch64
  19. - arm
  20. # Disable riscv64 due to missing pt_regs handling in aya-bpf/args.rs
  21. # - riscv64
  22. runs-on: ubuntu-20.04
  23. steps:
  24. - uses: actions/checkout@v2
  25. - uses: actions-rs/toolchain@v1
  26. with:
  27. toolchain: nightly
  28. components: rust-src
  29. override: true
  30. - uses: Swatinem/rust-cache@v1
  31. - name: Prereqs
  32. run: cargo install bpf-linker
  33. - name: Build
  34. env:
  35. CARGO_CFG_BPF_TARGET_ARCH: ${{ matrix.arch }}
  36. run: |
  37. cargo build-bpfel -p aya-bpf --verbose
  38. cargo build-bpfeb -p aya-bpf --verbose
  39. cargo build-bpfel -p aya-log-ebpf --verbose
  40. cargo build-bpfeb -p aya-log-ebpf --verbose