fix(ci): install libelf for tests, fix XDP clang include, unbreak cargo-deny
- rust-test needs libelf-dev/zlib1g-dev for vendored libbpf - clang -target bpf needs the multiarch include dir for asm/types.h - deny.toml: allow BSL-1.0 (xxhash-rust), skip duplicate versions pulled by redis/jsonwebtoken vs reqwest/axum, drop stale socket2 skip - update rustls-webpki to 0.103.16 (RUSTSEC-2026-0382) - enable jsonwebtoken rust_crypto provider so auth tests can run
This commit is contained in:
parent
b5238cf4c1
commit
be80204505
4 changed files with 395 additions and 6 deletions
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
|
@ -31,7 +31,10 @@ jobs:
|
|||
- name: XDP — smoke-check BPF compilation (clang)
|
||||
run: |
|
||||
mkdir -p target/xdp
|
||||
clang -O2 -g -target bpf -c xdp/core/universal_filter.c -o target/xdp/universal_filter.o
|
||||
# clang with `-target bpf` не смотрит в multiarch-каталог glibc,
|
||||
# поэтому asm/types.h из linux/types.h ищем явно.
|
||||
clang -O2 -g -target bpf -I"/usr/include/$(gcc -print-multiarch)" \
|
||||
-c xdp/core/universal_filter.c -o target/xdp/universal_filter.o
|
||||
test -f target/xdp/universal_filter.o
|
||||
|
||||
rust-test:
|
||||
|
|
@ -41,6 +44,8 @@ jobs:
|
|||
- uses: actions/checkout@v4
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
# libbpf-sys собирает vendored libbpf и требует заголовки libelf/zlib
|
||||
- run: sudo apt-get update && sudo apt-get install -y libelf-dev zlib1g-dev
|
||||
- run: cargo test --all-features
|
||||
|
||||
repo-gates:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue