On 10/25/24 09:02, Paolo Bonzini wrote:
We have fixed all incompatibilities with older versions of rustc
and bindgen.  Enable Rust on Debian to check that the minimum
supported version of Rust is indeed 1.63.0, and 0.60.x for bindgen.

Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
---
  .gitlab-ci.d/buildtest.yml | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml
index aba65ff833a..8deaf9627cb 100644
--- a/.gitlab-ci.d/buildtest.yml
+++ b/.gitlab-ci.d/buildtest.yml
@@ -40,7 +40,7 @@ build-system-ubuntu:
      job: amd64-ubuntu2204-container
    variables:
      IMAGE: ubuntu2204
-    CONFIGURE_ARGS: --enable-docs
+    CONFIGURE_ARGS: --enable-docs --enable-rust
      TARGETS: alpha-softmmu microblazeel-softmmu mips64el-softmmu
      MAKE_CHECK_ARGS: check-build
@@ -71,7 +71,7 @@ build-system-debian:
      job: amd64-debian-container
    variables:
      IMAGE: debian
-    CONFIGURE_ARGS: --with-coroutine=sigaltstack
+    CONFIGURE_ARGS: --with-coroutine=sigaltstack --enable-rust
      TARGETS: arm-softmmu i386-softmmu riscv64-softmmu sh4-softmmu
        sparc-softmmu xtensa-softmmu
      MAKE_CHECK_ARGS: check-build

Do you think it could be valuable to have a third job for Rust with:
- ubuntu2204 or debian with latest rustc/cargo/bindgen, so we may detect regressions when those are updated.

This way, we would test (2204 + min, debian + min, latest), which should ensure Rust code will build correctly on older and newer systems.

Pierrick

Reply via email to