From patchwork Mon Aug 19 11:21:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 820269 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c8:0:b0:367:895a:4699 with SMTP id m8csp1385598wrb; Mon, 19 Aug 2024 04:22:36 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUKvtdox854qes8xHBvM9KVR6VlNrmTaToJfqRJ5FXfBaRvg/2RHgVMaXdtyTr6zhDpf39NiqW50JCwjOYQUBxG X-Google-Smtp-Source: AGHT+IFPotjjoLzqq0EuotPIV9QM3os0lfujLIQl532zM8wE0i9RcTgKB+uAzEzHTGXy45dPpWv8 X-Received: by 2002:a05:620a:28d5:b0:79f:d11:2a4f with SMTP id af79cd13be357-7a5069d49e9mr1535442585a.54.1724066556472; Mon, 19 Aug 2024 04:22:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724066556; cv=none; d=google.com; s=arc-20160816; b=Pl8xFzYrBSKLFW2dkHP5xEnT+54LgTuTif9ed73tRaPNVWrkBV30Sqm2EanJxxgdvk c1+gfiNmzmq7cDtTzW/cy20Orcia4RoDe0RHVG1UI0wA+EPcZc6tH10lV73Lv0AhX2NX sCSRe8coxuWosdAWGCF6itsuIs/riePs4nRVzIj85QM1bQ2CRFytMKPFGWzxMHIkf2fY ENUo8UAHnzdZZSDJHGoWss6kqBsCeEWacx1UDqnAohdE0ylhGcIn8+cIL34ahtV+yOgD Y515uPww1xFbHicxqd4+vOfuLfvqY3UBdVsKAYaUBVxh1aVYiqCBsAcnxDlcm02tRYcD CYuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=tgmkqD1pvXX6j9fOMELfKRZxlUmd7avVvCvUUWED98Q=; fh=jyNqC20EXVhTGoXbkE14fxaTLYsD6F4buzpgqBroYdM=; b=WWde42YB2dk+PGCeCNjB12jGeZ4lWFRg33pobYQmNlpMLyqFpsgIgVdU7lFKx7Vtm9 p0tSYTrOngA1GC6hm6RQBfPVuvXSrNxmegMiOIQf0xDTawPIv7FvVqM+HLl7zVLkEb3S EC48mTPpBrkXAVxS68y2zbk4WLkogZZvdGdmhEnK3gIxwnFUm+iHi0ndniji1OX77gP4 wMVhPXk9bOWUDfQiv2WHUoPW/n4pftjaehxBXjC9HQgVLbe8gH5nzr5RLGBvo7ohMO40 J8zeHrscnjuyVkiYv6l8nJsH3/rVfIkOC2wPxwnM4z34vv38RsuaSnxlpZozx5P1MgD1 qPSQ==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g9I2CPE9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7a4ff1243c3si1087952885a.704.2024.08.19.04.22.36 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 19 Aug 2024 04:22:36 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=g9I2CPE9; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sg0SM-0002qY-FU; Mon, 19 Aug 2024 07:21:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sg0SL-0002pd-0d for qemu-devel@nongnu.org; Mon, 19 Aug 2024 07:21:49 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sg0SJ-0006Iw-Cf for qemu-devel@nongnu.org; Mon, 19 Aug 2024 07:21:48 -0400 Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-371ba7e46easo602425f8f.0 for ; Mon, 19 Aug 2024 04:21:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1724066504; x=1724671304; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=tgmkqD1pvXX6j9fOMELfKRZxlUmd7avVvCvUUWED98Q=; b=g9I2CPE9Mato+EkCGfvVz40m+g5oHEVIROYYl+mVMCloDDrOGR0nfDtwTsUdrB8Zow cRHFUcfz2fqvltw9vczmuzvhfDX99pL+7lGVgYsbfnXQmfKJEeU1ocGcosXAnkUQDkwm JDKaDnMad/RQyEB7BXfyJXzfJpdrL1H9BDgkN0VdBtYQue7CyHP9DcOOxi/DE5zhklPy cdDkDGWtMmEJQsQjhAUEW+AFNR9fag6JAa+3oMvq4i9ay0yzzzIFFG0KrRihdYnNEoDU WrNRyHmGUs5yZm8ub5eOp1UPRKj0mD9AAgQyOCM3nsWU2lXjFI/q0JvH7DC9r4hWDWjj EAGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724066504; x=1724671304; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tgmkqD1pvXX6j9fOMELfKRZxlUmd7avVvCvUUWED98Q=; b=ckgQAyxD7PpQ1H1O2jdKCfMWaVibbz1TVK3R/6woBRyvORJLbZUlcjGA66mDW2K687 Bb9++67xNl72K6GqI6YGabj6Pwhe5erMyJ58nI8dnbiIm5yEd98oP6khR277K0DI3ME3 IoFvBPaPHT/FGlZHyW+w1/VkxNTHBwcxpyDc5Jug0v1xCYDEHCaoo51LctgTOPuoi4J7 Mm8ZbiZpbN4Nx+qlPvdmWbOUXOkor45vnx/3fYrHMZdBfRNX56xZbO2C794eeHMziSuN GC+9RXoQL7r51uh1gbwzPjeLwAvRt3uesBTFOss4QzxXiRC7lONVMF8yJhyBzZTgtXzG 0eGg== X-Gm-Message-State: AOJu0YzqSvC/KL5X5UYe8uOuVoz17R0lsccp6kMaphXkzRfRfSVUP+4C 9VTJTczTJWGS4WMbL/FaTI3YwLKitaiHDT6MbOQ90NE1m1x/ITNGv7wv+r8XXIL5dqJElr89Hxb y X-Received: by 2002:adf:e8c7:0:b0:371:8cd6:b2c2 with SMTP id ffacd0b85a97d-371946a4994mr7283311f8f.48.1724066504418; Mon, 19 Aug 2024 04:21:44 -0700 (PDT) Received: from localhost.localdomain (34.22.205.77.rev.sfr.net. [77.205.22.34]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37189896a9csm10300543f8f.79.2024.08.19.04.21.43 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 19 Aug 2024 04:21:43 -0700 (PDT) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal , Thomas Huth , Yonggang Luo , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH] gitlab-ci: Build MSYS2 job using multiple CPUs Date: Mon, 19 Aug 2024 13:21:41 +0200 Message-ID: <20240819112141.13786-1-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::436; envelope-from=philmd@linaro.org; helo=mail-wr1-x436.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Philippe Mathieu-Daudé --- I don't know how to use Powershell do use nproc+1 jobs to optimize jobs waiting on I/O. --- .gitlab-ci.d/windows.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.d/windows.yml b/.gitlab-ci.d/windows.yml index a83f23a786..35ccb74fee 100644 --- a/.gitlab-ci.d/windows.yml +++ b/.gitlab-ci.d/windows.yml @@ -110,6 +110,7 @@ msys2-64bit: mingw-w64-x86_64-usbredir mingw-w64-x86_64-zstd" - Write-Output "Running build at $(Get-Date -Format u)" + - $env:JOBS = $(.\msys64\usr\bin\bash -lc nproc) - $env:CHERE_INVOKING = 'yes' # Preserve the current working directory - $env:MSYS = 'winsymlinks:native' # Enable native Windows symlink - $env:CCACHE_BASEDIR = "$env:CI_PROJECT_DIR" @@ -121,7 +122,7 @@ msys2-64bit: - cd build - ..\msys64\usr\bin\bash -lc "ccache --zero-stats" - ..\msys64\usr\bin\bash -lc "../configure --enable-fdt=system $CONFIGURE_ARGS" - - ..\msys64\usr\bin\bash -lc "make" + - ..\msys64\usr\bin\bash -lc "make -j$env:JOBS" - ..\msys64\usr\bin\bash -lc "make check MTESTARGS='$TEST_ARGS' || { cat meson-logs/testlog.txt; exit 1; } ;" - ..\msys64\usr\bin\bash -lc "ccache --show-stats" - Write-Output "Finished build at $(Get-Date -Format u)"