name: build-aya-bpf on: push: branches: - main - ci pull_request: branches: - main env: CARGO_TERM_COLOR: always jobs: build: strategy: fail-fast: false matrix: arch: - x86_64 - aarch64 - arm - riscv64 target: - bpfel-unknown-none - bpfeb-unknown-none runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v3 - uses: dtolnay/rust-toolchain@master with: toolchain: nightly components: rust-src - uses: Swatinem/rust-cache@v2 - name: Prereqs run: cargo install bpf-linker - uses: taiki-e/install-action@cargo-hack - name: Build env: CARGO_CFG_BPF_TARGET_ARCH: ${{ matrix.arch }} run: | cargo hack build --package aya-bpf --package aya-log-ebpf \ --feature-powerset \ --target ${{ matrix.target }} \ -Z build-std=core