diff mbox series

[2/2] gitlab-ci: add Rust-enabled CI job

Message ID 20241007171717.1436982-3-pbonzini@redhat.com (mailing list archive)
State New, archived
Headers show
Series dockerfiles, gitlab-ci: add CI job using nightly Rust | expand

Commit Message

Paolo Bonzini Oct. 7, 2024, 5:17 p.m. UTC
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 .gitlab-ci.d/buildtest.yml  | 13 +++++++++++++
 .gitlab-ci.d/containers.yml |  6 ++++++
 2 files changed, 19 insertions(+)

Comments

Daniel P. Berrangé Oct. 7, 2024, 6:13 p.m. UTC | #1
On Mon, Oct 07, 2024 at 07:17:13PM +0200, Paolo Bonzini wrote:
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  .gitlab-ci.d/buildtest.yml  | 13 +++++++++++++
>  .gitlab-ci.d/containers.yml |  6 ++++++
>  2 files changed, 19 insertions(+)
> 
> diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml
> index 669c980c4b4..a92e731d6af 100644
> --- a/.gitlab-ci.d/buildtest.yml
> +++ b/.gitlab-ci.d/buildtest.yml
> @@ -120,6 +120,19 @@ build-system-fedora:
>        xtensa-softmmu m68k-softmmu riscv32-softmmu ppc-softmmu sparc64-softmmu
>      MAKE_CHECK_ARGS: check-build
>  
> +build-system-fedora-rust:

Add '-nightly' to the job name too, to match the container its
using.

> +  extends:
> +    - .native_build_job_template
> +    - .native_build_artifact_template
> +  needs:
> +    job: amd64-fedora-rust-container
> +  variables:
> +    IMAGE: fedora-rust-nightly
> +    CONFIGURE_ARGS: --disable-gcrypt --enable-nettle --disable-docs --enable-rust

You can leave out the crypt+nettle args and just let this
job auto-detect the right one

> +    TARGETS: aarch64-softmmu
> +    MAKE_CHECK_ARGS: check-build
> +  allow_failure: true



With regards,
Daniel
diff mbox series

Patch

diff --git a/.gitlab-ci.d/buildtest.yml b/.gitlab-ci.d/buildtest.yml
index 669c980c4b4..a92e731d6af 100644
--- a/.gitlab-ci.d/buildtest.yml
+++ b/.gitlab-ci.d/buildtest.yml
@@ -120,6 +120,19 @@  build-system-fedora:
       xtensa-softmmu m68k-softmmu riscv32-softmmu ppc-softmmu sparc64-softmmu
     MAKE_CHECK_ARGS: check-build
 
+build-system-fedora-rust:
+  extends:
+    - .native_build_job_template
+    - .native_build_artifact_template
+  needs:
+    job: amd64-fedora-rust-container
+  variables:
+    IMAGE: fedora-rust-nightly
+    CONFIGURE_ARGS: --disable-gcrypt --enable-nettle --disable-docs --enable-rust
+    TARGETS: aarch64-softmmu
+    MAKE_CHECK_ARGS: check-build
+  allow_failure: true
+
 check-system-fedora:
   extends: .native_test_job_template
   needs:
diff --git a/.gitlab-ci.d/containers.yml b/.gitlab-ci.d/containers.yml
index ae79d4c58bc..414ae5e828b 100644
--- a/.gitlab-ci.d/containers.yml
+++ b/.gitlab-ci.d/containers.yml
@@ -27,3 +27,9 @@  python-container:
   extends: .container_job_template
   variables:
     NAME: python
+
+amd64-fedora-rust-container:
+  extends: .container_job_template
+  variables:
+    NAME: fedora-rust-nightly
+  allow_failure: true