[PATCH 2/2] ci: container: enable rustc and bindgen in container
Ahmad Fatoum <[email protected]> Fri, 26 Jun 2026 13:31:23 +0200
| Newsgroups | org.infradead.lists.barebox |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> --- 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