ci: Add CI for aya-bpf

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
pull/66/head
Dave Tucker 3 years ago committed by Alessandro Decina
parent 69041954cb
commit 16b89fbe72

@ -0,0 +1,33 @@
name: Build aya-bpf
on:
push:
branches:
- main
- ci
pull_request:
branches:
- main
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- uses: Swatinem/rust-cache@v1
- name: Build
run: cargo +nightly build --verbose
- name: Run tests
run: RUST_BACKTRACE=full cargo +nightly test --verbose

@ -1,4 +1,4 @@
name: Build name: Build aya
on: on:
push: push:

@ -27,10 +27,17 @@ jobs:
components: rustfmt, clippy components: rustfmt, clippy
- name: Check formatting - name: Check formatting
run: cargo +nightly fmt --all -- --check run: |
cargo +nightly fmt --all -- --check
pushd bpf
cargo +nightly fmt --all -- --check
popd
- name: Run clippy - name: Run clippy
run: | run: |
cargo +nightly clippy -p aya -- --deny warnings cargo +nightly clippy -p aya -- --deny warnings
cargo +nightly clippy -p aya-gen -- --deny warnings cargo +nightly clippy -p aya-gen -- --deny warnings
cargo +nightly clippy -p xtask -- --deny warnings cargo +nightly clippy -p xtask -- --deny warnings
pushd bpf
cargo +nightly clippy -p aya-bpf -- --deny warnings
popd
Loading…
Cancel
Save