[PATCH 2/2] ci: container: enable rustc and bindgen in container

Ahmad Fatoum a.fatoum at barebox.org
Fri Jun 26 04:31:23 PDT 2026


To make it possible to compile incoming rust code in CI, add the
necessary crates into the container.

Also define LIBCLANG_PATH as otherwise bindgen will fail to run.

Signed-off-by: Ahmad Fatoum <a.fatoum at barebox.org>
---
 test/Containerfile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/Containerfile b/test/Containerfile
index 89c975cfbfa0..296835d080f4 100644
--- a/test/Containerfile
+++ b/test/Containerfile
@@ -56,6 +56,7 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-reco
 	python3-setuptools \
 	python3-virtualenv \
 	python3-yaml \
+	rustc rust-src bindgen rustfmt rust-clippy \
 	virtualenv \
 	sudo \
 	device-tree-compiler \
@@ -67,6 +68,7 @@ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-reco
 
 ENV GCC_VERSION=15.2.0
 ENV LLVM_VERSION=20
+ENV LIBCLANG_PATH=/usr/lib/llvm-19/lib
 
 RUN apt-get update && apt-get install -y --no-install-recommends lsb-release gnupg \
 	&& wget https://apt.llvm.org/llvm.sh \
-- 
2.47.3




More information about the barebox mailing list