From nobody Mon Feb 9 07:22:33 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=philmd@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1604874015; cv=none; d=zohomail.com; s=zohoarc; b=WRhSeI1buYYMAcqtUz5hTa7Cn73yTJG4hfGejdazzUbSk0g2xFgDaFQAlcLeaLpuyoeSqN5LMsrE2tzEAoTbV8F4eawSOh1eQyRVMt7tfWkmjc04+63P0DuQpYQIDLXri2X9Q8cfpSaqbdsg2h7/VPDSo4jlGBHrzOjYMyufF1I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1604874015; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=nMEwDA6q7/+ANMGT4q9xU52HjvF7sSsilp6NDuTdYrw=; b=U7YQaAUjBz2SZmXlzMIryh/Z6HVM9V44mjf3CfVC/St333KApkjpzdjtfmaoL6e5iq3F9kFEB7rYfW7+mDhmZcUfpeQowjm0zCUZKuei5LyiV3l8t+0d5qngnD3obHnC0PkjcjdpOfavTTtV4Enz2OCX2diVS9fhyRnhYvOaIXI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=philmd@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1604874015815231.58260520765145; Sun, 8 Nov 2020 14:20:15 -0800 (PST) Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-240-R67vyuHBP5yK49lKW66qdA-1; Sun, 08 Nov 2020 17:20:13 -0500 Received: by mail-wr1-f72.google.com with SMTP id p16so831449wrx.4 for ; Sun, 08 Nov 2020 14:20:12 -0800 (PST) Return-Path: Return-Path: Received: from localhost.localdomain (234.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.234]) by smtp.gmail.com with ESMTPSA id z191sm10694054wme.30.2020.11.08.14.20.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Nov 2020 14:20:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604874014; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nMEwDA6q7/+ANMGT4q9xU52HjvF7sSsilp6NDuTdYrw=; b=c8BplfXu9Zcv5RytOpyN+4Hzg4TvNkngAEGhJ6wBtD8ZZnZDOidEYqxH77a1FTWxDDKkP1 TXDCveWaYR2Z6267He2Cr1G/YBtYsAFVvF/4RGPKGxUF1ofwVIFFdfcqf9ZCgmH7roK0DS AB9ilMBo7xtthDTgeBfuDs2K4PKspxk= X-MC-Unique: R67vyuHBP5yK49lKW66qdA-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nMEwDA6q7/+ANMGT4q9xU52HjvF7sSsilp6NDuTdYrw=; b=iaQ3b0bLzF8/dII77CiCFHTJrNToTzdjI245GINjuXjvVtoaeJVssk+7rlKv8Pflza 5YUuibR8NXCuvGH7xR+pcp+hVMY0JeLXgrx5mU8QfmQajYHgdBReWNB89+VkCuRNGHCZ ZZasfTtc5Aoqc5xVDTiBaxOq0PmsI5Y1gXVjlp51qcPo0jj8proscagrgVsnjEg4WPMW ki6EWoRunY4G7mMp2S60QWFwk9/ts8qf7nNXF+Mss+h+R1d4lWjgFS2Gzt164K+qaRua +so5otVC9gr9gaXBqroza9t5IbVd18A4vMARqbAlhzN56h8BO3m5pahN+lXazFijpCZp e/tw== X-Gm-Message-State: AOAM531L5AOTdm53f1hfIgR4njwkQbTm6wj8gtS+ba9WLTx+Q7uNQFVs bstS/ZHS+tUvMWV2Dfzbw4AQ0uxkTOpPExLzEjVbPCv7gRwZKz1bX6AI/7njTI28c4jiwNJTGxD yX8yM2xcoKe85oA== X-Received: by 2002:a1c:5f45:: with SMTP id t66mr11302215wmb.20.1604874011859; Sun, 08 Nov 2020 14:20:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJyy9kv0mhdwLWjKgLIaQ4b5eVaPCGdYw8DbwAXzgBCuzi1LXV0ekZj2UFq7Sn85mZieXspXwA== X-Received: by 2002:a1c:5f45:: with SMTP id t66mr11302209wmb.20.1604874011702; Sun, 08 Nov 2020 14:20:11 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Cleber Rosa , "Daniel P . Berrange" , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta Subject: [PATCH v3 09/11] gitlab-ci: Add rules to select cross-jobs to build Date: Sun, 8 Nov 2020 23:19:23 +0100 Message-Id: <20201108221925.2344515-10-philmd@redhat.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201108221925.2344515-1-philmd@redhat.com> References: <20201108221925.2344515-1-philmd@redhat.com> MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=philmd@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Add rules to select some crossbuild jobs. The following tags are available to restrict the CI jobs: - all (select all jobs, this is default) - cross (select all cross-jobs) - system (select all cross-system jobs) - user (select all cross-user jobs) - $ARCH (select an architecture: arm/mips/ppc/sparc/...) Developers can combine tags in the QEMU_BUILD variable when pushing a branch (or tag) to repositories. Examples: $ git push -o ci.variable=3D"QEMU_BUILD=3Duser" myrepo mybranch $ git push -o ci.variable=3D"QEMU_BUILD=3Duser,system" myrepo mybranch References: - https://docs.gitlab.com/ee/ci/yaml/#rulesif - https://docs.gitlab.com/ee/user/project/push_options.html#push-options-fo= r-gitlab-cicd Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- .gitlab-ci.d/crossbuilds.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.gitlab-ci.d/crossbuilds.yml b/.gitlab-ci.d/crossbuilds.yml index 701550f028c..017bc706689 100644 --- a/.gitlab-ci.d/crossbuilds.yml +++ b/.gitlab-ci.d/crossbuilds.yml @@ -1,6 +1,41 @@ .cross_common_job: stage: build image: $CI_REGISTRY_IMAGE/qemu/$IMAGE:latest + rules: + # If the if statement is true, the job is added to the pipeline. + # We only filter for push events + - if: '$CI_PIPELINE_SOURCE !=3D "push"' + # Build all when no variable defined, or set to "all" + - if: $QEMU_BUILD =3D=3D null || $QEMU_BUILD =3D~ /^all$/ + # Build specific job name + - if: $QEMU_BUILD =3D~ /^$CI_JOB_NAME$/ + # Build set of jobs by feature + - if: $QEMU_BUILD =3D~ /cross/ + - if: $QEMU_BUILD =3D~ /system/ && $CI_JOB_NAME =3D~ /system/ + - if: $QEMU_BUILD =3D~ /user/ && $CI_JOB_NAME =3D~ /user/ + # Build set of jobs by arch + - if: $QEMU_BUILD =3D~ /aarch64/ && ($CI_JOB_NAME =3D~ /aarch64/ || $I= MAGE =3D~ /aarch64/) + - if: $QEMU_BUILD =3D~ /alpha/ && ($CI_JOB_NAME =3D~ /alpha/ || $IMAGE= =3D~ /alpha/) + - if: $QEMU_BUILD =3D~ /arm/ && ($CI_JOB_NAME =3D~ /arm/ || $IMAGE =3D= ~ /arm/) + - if: $QEMU_BUILD =3D~ /avr/ && ($CI_JOB_NAME =3D~ /avr/ || $IMAGE =3D= ~ /avr/) + - if: $QEMU_BUILD =3D~ /hppa/ && ($CI_JOB_NAME =3D~ /hppa/ || $IMAGE = =3D~ /hppa/) + - if: $QEMU_BUILD =3D~ /i386/ && ($CI_JOB_NAME =3D~ /i386/ || $IMAGE = =3D~ /i386/) + - if: $QEMU_BUILD =3D~ /lm32/ && ($CI_JOB_NAME =3D~ /lm32/ || $IMAGE = =3D~ /lm32/) + - if: $QEMU_BUILD =3D~ /m68k/ && ($CI_JOB_NAME =3D~ /m68k/ || $IMAGE = =3D~ /m68k/) + - if: $QEMU_BUILD =3D~ /mips/ && ($CI_JOB_NAME =3D~ /mips/ || $IMAGE = =3D~ /mips/) + - if: $QEMU_BUILD =3D~ /ppc/ && ($CI_JOB_NAME =3D~ /ppc/ || $IMAGE =3D= ~ /ppc/) + - if: $QEMU_BUILD =3D~ /riscv/ && ($CI_JOB_NAME =3D~ /riscv/ || $IMAGE= =3D~ /riscv/) + - if: $QEMU_BUILD =3D~ /s390x/ && ($CI_JOB_NAME =3D~ /s390x/ || $IMAGE= =3D~ /s390x/) + - if: $QEMU_BUILD =3D~ /sparc/ && ($CI_JOB_NAME =3D~ /sparc/ || $IMAGE= =3D~ /sparc/) + - if: $QEMU_BUILD =3D~ /tricore/ && ($CI_JOB_NAME =3D~ /tricore/ || $I= MAGE =3D~ /tricore/) + - if: $QEMU_BUILD =3D~ /x86/ && ($CI_JOB_NAME =3D~ /x86/ || $IMAGE =3D= ~ /x86/) + - if: $QEMU_BUILD =3D~ /xtensa/ && ($CI_JOB_NAME =3D~ /xtensa/ || $IMA= GE =3D~ /xtensa/) + # In all other cases, do not not execute the job automatically. Note t= he + # job is not excluded from the pipeline, user can still start it manua= lly. + # As the job is optional, we have to mark it 'allow_failure' to not bl= ock + # the pipeline. + - when: manual + allow_failure: true =20 .cross_system_build_job: extends: .cross_common_job --=20 2.26.2