4
0

build-aya.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. name: build-aya
  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-test:
  14. strategy:
  15. fail-fast: false
  16. matrix:
  17. arch:
  18. - x86_64-unknown-linux-gnu
  19. - aarch64-unknown-linux-gnu
  20. - armv7-unknown-linux-gnueabi
  21. - riscv64gc-unknown-linux-gnu
  22. runs-on: ubuntu-20.04
  23. steps:
  24. - uses: actions/checkout@v3
  25. - uses: dtolnay/rust-toolchain@master
  26. with:
  27. toolchain: stable
  28. targets: ${{ matrix.arch }}
  29. - uses: Swatinem/rust-cache@v2
  30. - uses: taiki-e/install-action@cargo-hack
  31. - uses: taiki-e/setup-cross-toolchain-action@v1
  32. with:
  33. target: ${{ matrix.arch }}
  34. - name: Build
  35. run: |
  36. cargo hack build --all-targets --feature-powerset \
  37. --exclude aya-bpf \
  38. --exclude aya-bpf-bindings \
  39. --exclude aya-log-ebpf \
  40. --exclude integration-ebpf \
  41. --workspace
  42. - name: Test
  43. env:
  44. RUST_BACKTRACE: full
  45. run: |
  46. cargo hack test --all-targets --feature-powerset \
  47. --exclude aya-bpf \
  48. --exclude aya-bpf-bindings \
  49. --exclude aya-log-ebpf \
  50. --exclude integration-ebpf \
  51. --exclude integration-test \
  52. --workspace