Skip to content

Commit d70194c

Browse files
committed
ci: Fix release pipelines
Signed-off-by: Georgy Savidov <g.savidov@t-tech.dev>
1 parent 9941f09 commit d70194c

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,12 @@ jobs:
1616
- uses: dtolnay/rust-toolchain@stable
1717
with:
1818
toolchain: nightly
19-
19+
- uses: cargo-bins/cargo-binstall@main
2020
- name: Install musl toolchain and dependencies
2121
run: |
2222
sudo apt update && sudo apt install -y clang libbpf-dev
23-
cargo install bpf-linker bindgen-cli
23+
cargo binstall bpf-linker
24+
cargo install bindgen-cli
2425
cargo xtask tarball --release --with-tag $VERSION
2526
2627
- name: Upload release artifacts
@@ -69,4 +70,4 @@ jobs:
6970
echo IMAGE_ID=$IMAGE_ID
7071
echo VERSION=$VERSION
7172
docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
72-
docker push $IMAGE_ID:$VERSION
73+
docker push $IMAGE_ID:$VERSION

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ FROM rust:1.95.0 AS bombini-builder
33
RUN apt update && apt install -y bpftool clang libbpf-dev
44
WORKDIR /bombini
55
COPY . ./
6-
RUN rustup show && cargo install bpf-linker bindgen-cli
6+
RUN rustup show && cargo install bindgen-cli
7+
RUN cargo install cargo-binstall --locked && cargo binstall bpf-linker
78
RUN cargo xtask build --release
89
RUN mkdir -p ./target/bpf-objs && \
910
find ./target/bpfel-unknown-none/release -maxdepth 1 -exec file {} + | \

0 commit comments

Comments
 (0)