1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- name: build-aya-bpf
- on:
- push:
- branches:
- - main
- - ci
- pull_request:
- branches:
- - main
- env:
- CARGO_TERM_COLOR: always
- jobs:
- build:
- strategy:
- matrix:
- arch:
- - x86_64
- - aarch64
- - arm
- # Disable riscv64 due to missing pt_regs handling in aya-bpf/args.rs
- # - riscv64
- runs-on: ubuntu-20.04
- steps:
- - uses: actions/checkout@v2
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: nightly
- override: true
- - uses: Swatinem/rust-cache@v1
- - name: Prereqs
- run: cargo install cross --git https://github.com/cross-rs/cross
- - name: Build
- env:
- CARGO_CFG_BPF_TARGET_ARCH: ${{ matrix.arch }}
- run: |
- pushd bpf
- cargo build --workspace --exclude aya-bpf-macros --verbose
- popd
- - name: Run tests
- env:
- CARGO_CFG_BPF_TARGET_ARCH: ${{ matrix.arch }}
- run: |
- pushd bpf
- cargo test --workspace --exclude aya-bpf-macros --verbose
- popd
- build-macros:
- strategy:
- matrix:
- arch:
- - x86_64-unknown-linux-gnu
- - aarch64-unknown-linux-gnu
- - armv7-unknown-linux-gnueabi
- - riscv64gc-unknown-none-elf
- runs-on: ubuntu-20.04
- steps:
- - uses: actions/checkout@v2
- - uses: actions-rs/toolchain@v1
- with:
- toolchain: nightly
- override: true
- - uses: Swatinem/rust-cache@v1
- - name: Prereqs
- run: cargo install cross --git https://github.com/cross-rs/cross
- - name: Build bpf macros
- run: |
- pushd bpf
- cross build -p aya-bpf-macros --verbose
- popd
- - name: Test bpf macros
- run: |
- pushd bpf
- RUST_BACKTRACE=full cross test -p aya-bpf-macros --verbose
- popd
|