12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- 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
|