From nobody Wed May 8 11:34:33 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@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 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1652345483; cv=none; d=zohomail.com; s=zohoarc; b=U55Jh49SiSwLfyzXgN/J65VFeLSr2sv+U+X1qxl1b78zXueIL+LVsxB56XBXLaTtrqIDizswoA0gylk1owG02p/7qzgIaYmM2HRZAkbgg1Y0KbXujvuNSDfkE3QwZgYDfkie78HjpNc8bzYj/Va0jjMtefjGtGZwMz5KKGEeANQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652345483; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=JoDpdhRvB3+EC42jOdXEhK+F9DsGNBNbPm4Zx8WiQb0=; b=Saro00jE/OD6xbJIDEanY45BGTH2UojQKlU62mkdzbLuy1BLKEnFPzN9Ln2J9HLk5Jdb6wrf+WV5WhVnXe0l3viw8bqN9wsWXQQVe9rxdGOBY8zIegfzfTnY+wT/r1FOzSQHb3E4exAiBKkpc8T4W5ejfC9CfVFdbP1ZyxacZs4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1652345483439224.76212273742715; Thu, 12 May 2022 01:51:23 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-664-3Hi9X6sXMse28QtM8q31qw-1; Thu, 12 May 2022 04:51:18 -0400 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 418DC802A5B; Thu, 12 May 2022 08:51:16 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2E2DC41617C; Thu, 12 May 2022 08:51:16 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 0D1CB193221F; Thu, 12 May 2022 08:51:16 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 6CC371932207 for ; Thu, 12 May 2022 08:51:15 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 449291121314; Thu, 12 May 2022 08:51:15 +0000 (UTC) Received: from nautilus.redhat.com (unknown [10.40.193.34]) by smtp.corp.redhat.com (Postfix) with ESMTP id B859E112131E; Thu, 12 May 2022 08:51:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652345482; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=JoDpdhRvB3+EC42jOdXEhK+F9DsGNBNbPm4Zx8WiQb0=; b=G8YHQW4Ekx9uXEh3EUV3KpUYG/3WRzG+BWwK/guhrNz5r0e1pzdNgoU29uJuYMtghf/4/4 dMReLihT3CoFgmX1czbPctgWbw4bzWPhpzCSoOKVFApjCwXkZ5Kn1Rn6+rLvruefbERYu2 +yP78eS0H+gugBhq5127HoegSKgqMPo= X-MC-Unique: 3Hi9X6sXMse28QtM8q31qw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Erik Skultety To: libvir-list@redhat.com Subject: [libvirt PATCH v2 3/5] ci: Introduce a template for upstream QEMU build Date: Thu, 12 May 2022 10:50:57 +0200 Message-Id: <606e565821e4ef730e1a842efa1825cf397d05bc.1652345345.git.eskultet@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: eskultet@redhat.com Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652345485471100009 Content-Type: text/plain; charset="utf-8"; x-default="true" This was heavily inspired by QEMU's upstream CI buildtest-template.yml. Rather than referencing QEMU's template directly (which GitLab can do), this patch resorts to hard-coding the build steps ourselves, solely because there's no guarantee QEMU will keep either the template file name or the template name from which the build steps were mostly copied from. Signed-off-by: Erik Skultety Reviewed-by: Daniel P. Berrang=C3=A9 --- ci/integration-template.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/ci/integration-template.yml b/ci/integration-template.yml index 195e9cfa5f..89fc3f0bae 100644 --- a/ci/integration-template.yml +++ b/ci/integration-template.yml @@ -1,3 +1,22 @@ +.qemu-build-template: &qemu-build-template + - git clone --depth 1 https://gitlab.com/qemu-project/qemu.git + - cd qemu + # + # inspired by upstream QEMU's buildtest-template.yml + - export JOBS=3D"$(expr $(nproc) + 1)" + - mkdir build + - cd build + - ../configure --prefix=3D/usr + --enable-werror + --disable-tcg + --disable-docs + --target-list=3Dx86_64-softmmu || (cat config.log meson-l= ogs/meson-log.txt && exit 1) + - make -j"$JOBS" + - if test -n "$MAKE_CHECK_ARGS"; + then + make -j"$JOBS" check-build; + fi + - sudo make install =20 =20 .install-deps: &install-deps --=20 2.34.3