ci: test aya-bpf-macros on nightly

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
pull/319/head
Dave Tucker 2 years ago
parent 05c1586202
commit cf3c8f355e

@ -35,6 +35,9 @@ jobs:
- uses: Swatinem/rust-cache@v1 - uses: Swatinem/rust-cache@v1
- name: Prereqs
run: cargo install cross --git https://github.com/cross-rs/cross
- name: Build - name: Build
env: env:
CARGO_CFG_BPF_TARGET_ARCH: ${{ matrix.arch }} CARGO_CFG_BPF_TARGET_ARCH: ${{ matrix.arch }}
@ -50,3 +53,37 @@ jobs:
pushd bpf pushd bpf
cargo test --workspace --exclude aya-bpf-macros --verbose cargo test --workspace --exclude aya-bpf-macros --verbose
popd 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

@ -35,12 +35,6 @@ jobs:
- name: Run test - name: Run test
run: RUST_BACKTRACE=full cross test --verbose run: RUST_BACKTRACE=full cross test --verbose
- name: Build bpf macros
run: cross build --manifest-path ./bpf/Cargo.toml -p aya-bpf-macros --verbose
- name: Test bpf macros
run: RUST_BACKTRACE=full cross test --manifest-path ./bpf/Cargo.toml -p aya-bpf-macros --verbose
test: test:
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
needs: build needs: build

Loading…
Cancel
Save