From: Ahmad Fatoum <a.fatoum@barebox.org>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@barebox.org>
Subject: [PATCH 2/2] ci: container: enable rustc and bindgen in container
Date: Fri, 26 Jun 2026 13:31:23 +0200 [thread overview]
Message-ID: <20260626113132.1557874-2-a.fatoum@barebox.org> (raw)
In-Reply-To: <20260626113132.1557874-1-a.fatoum@barebox.org>
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@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
prev parent reply other threads:[~2026-06-26 11:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-26 11:31 [PATCH 1/2] ci: container: add FAT image tools to container Ahmad Fatoum
2026-06-26 11:31 ` Ahmad Fatoum [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260626113132.1557874-2-a.fatoum@barebox.org \
--to=a.fatoum@barebox.org \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox