build-aya-bpf.yml 963 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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@v3
  25. - uses: dtolnay/rust-toolchain@master
  26. with:
  27. toolchain: nightly
  28. components: rust-src
  29. - uses: Swatinem/rust-cache@v2
  30. - name: Prereqs
  31. run: cargo install bpf-linker
  32. - name: Build
  33. env:
  34. CARGO_CFG_BPF_TARGET_ARCH: ${{ matrix.arch }}
  35. run: |
  36. cargo build-bpfel -p aya-bpf --verbose
  37. cargo build-bpfeb -p aya-bpf --verbose
  38. cargo build-bpfel -p aya-log-ebpf --verbose
  39. cargo build-bpfeb -p aya-log-ebpf --verbose