build-aya.yml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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:
  14. strategy:
  15. matrix:
  16. arch:
  17. - x86_64-unknown-linux-gnu
  18. - aarch64-unknown-linux-gnu
  19. - armv7-unknown-linux-gnueabi
  20. - riscv64gc-unknown-none-elf
  21. runs-on: ubuntu-20.04
  22. steps:
  23. - uses: actions/checkout@v2
  24. - uses: Swatinem/rust-cache@v1
  25. - name: Prereqs
  26. run: cargo install cross --git https://github.com/cross-rs/cross
  27. - name: Build
  28. run: cross build --verbose
  29. - name: Run test
  30. run: RUST_BACKTRACE=full cross test --verbose
  31. - name: Build bpf macros
  32. run: cross build --manifest-path ./bpf/Cargo.toml -p aya-bpf-macros --verbose
  33. - name: Test bpf macros
  34. run: RUST_BACKTRACE=full cross test --manifest-path ./bpf/Cargo.toml -p aya-bpf-macros --verbose
  35. test:
  36. runs-on: ubuntu-20.04
  37. needs: build
  38. container:
  39. image: ghcr.io/aya-rs/aya-test-rtf:main
  40. steps:
  41. - uses: actions/checkout@v2
  42. - name: Run regression tests
  43. run: |
  44. ln -s /root/.rustup ${HOME}/.rustup
  45. cd test
  46. rtf -vvv run