fix(ci): ship benches into the edge image and refresh actions
The edge Dockerfile copied Cargo.toml but not benches/, so cargo refused to parse the manifest over the declared [[bench]] hot_paths target and the image build died with exit 101 before compiling anything. Also bump checkout/buildx/build-push to their node24 majors and pin ubuntu-24.04 to clear the runner deprecation notices.
This commit is contained in:
parent
15f3fcb895
commit
1b3ae5e546
2 changed files with 22 additions and 19 deletions
|
|
@ -6,8 +6,11 @@ WORKDIR /app
|
|||
COPY Cargo.toml Cargo.lock rustfmt.toml clippy.toml deny.toml build.rs ./
|
||||
COPY src/ ./src/
|
||||
COPY xdp/ ./xdp/
|
||||
# Cargo.toml declares `[[bench]] hot_paths`; the manifest does not parse unless
|
||||
# the target file exists, even though the image only builds the `rampart` bin.
|
||||
COPY benches/ ./benches/
|
||||
|
||||
# Smoke-check: BPF-программа компилируется clang'ом (не грузится, только сборка)
|
||||
# Smoke-check: the BPF program compiles with clang (build only, never loaded).
|
||||
RUN if command -v clang >/dev/null; then \
|
||||
mkdir -p /app/target/xdp && \
|
||||
clang -O2 -g -target bpf -I"/usr/include/$(gcc -print-multiarch)" -c xdp/core/universal_filter.c -o /app/target/xdp/universal_filter.o; \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue