From nobody Sat Sep 21 05:44:23 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of _spf.google.com designates 209.85.218.52 as permitted sender) client-ip=209.85.218.52; envelope-from=philippe.mathieu.daude@gmail.com; helo=mail-ej1-f52.google.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.218.52 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1620660199; cv=none; d=zohomail.com; s=zohoarc; b=gNTkSviW8BXl9dnpkzvD6YscvoCy27MFCofFn3thkCgSj0BEwpu62krC7R/dBsJpQqUr9Vhgq+xNPSHAreib7WDPiudh46AsQmioqpA1zVJcaFO/L7YQYvhUX3TMu4s0dxEoWnWbbX9rTg+LWw89byI9b/Iuh54GTl3PUjBA2D4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1620660199; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Sender:Subject:To; bh=dbG+Q6JY5l/CMiEysJmM0J9wPNN84EDj+3HMZXO10xY=; b=j3VhZbi6l5NfeNZsGRhkmiGS5fGyc0KkqYIdqlqWqtqgAqcE3XcIDn3YjpRYzyswSYOq1gPawe/kAi+/qDxqeZQm+aNGYZRxLVCVh6SlCehy2WKNFGfknnZxAOvjW+ESqay+7QI+E158u7JyOqhRTA+FScWda4skipM+GzXLP3I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of _spf.google.com designates 209.85.218.52 as permitted sender) smtp.mailfrom=philippe.mathieu.daude@gmail.com Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) by mx.zohomail.com with SMTPS id 1620660199290466.000283864934; Mon, 10 May 2021 08:23:19 -0700 (PDT) Received: by mail-ej1-f52.google.com with SMTP id l4so25109655ejc.10 for ; Mon, 10 May 2021 08:23:18 -0700 (PDT) Return-Path: Return-Path: Received: from x1w.redhat.com (39.red-81-40-121.staticip.rima-tde.net. [81.40.121.39]) by smtp.gmail.com with ESMTPSA id o25sm3952961ejd.70.2021.05.10.08.23.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 May 2021 08:23:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dbG+Q6JY5l/CMiEysJmM0J9wPNN84EDj+3HMZXO10xY=; b=llylqKabZlczpDE8yaQti2o/wGmO/NljXNzE3sZMa5V6gH11lpDVJ+mG5Fu6W2mgXJ TmCWTDzu+wo5cbKttaancmQl6trdaPEL4hVo6IETY7in1erR0PY9dOSZyFlQ0do+MkyT BQqQC6C9D+5ePlYaFG0oRm2t4adma1i+ij9PW132vW44eO6Q5wBdE6Q2+msMV+BIz+Ax /AhvIVAch/Yv8Ja+eKJNKIimrVOzw57JKUhCgw8mcZMrbCr9PMZWVPl/lV/SXWHupGfn Czo6azhpgdRnsrEnhLO/mMaz3tOZDaBAHAjXFyNho/xViLp7gz6f51mNWlFuaWO9VRos 0S2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=dbG+Q6JY5l/CMiEysJmM0J9wPNN84EDj+3HMZXO10xY=; b=Tkid3nDRYM29KqwVqwy6ZvqXqel1oKtrv2sbEv0UbPNpC3ZUlLyjPcZGzTwjo9RXrq pCnuiDt3nJcLy6N/5Zle2W8mNn0pp8MOww5bNl4OeYVN4OfQG+yp0wxgNOuuxolRim3h ZETzVEbNf0uzhojUjCjRubVvqu1xnCXx5V8uzZJwJm33Ui32WG2jZkRWDB/h1xndgyvI myyGRixRLsTPl02goCOororfyWumkQikN7VZfCDlk+RKBELs3xliKCYK8iGthkH+LguE j+tm16Fpi2AWlW0C5ZqHauO8fsDA2sRVG5Cu93/XJ3mA2qiTvjSEaZG5bQzquVAC3JFr fbCg== X-Gm-Message-State: AOAM530PQFzwRniVqmmU9a6vJhU/1AtssqFVKy/wSwfxl3T1c27QTNF+ tJSHdjBJGxD4Es23dEAIcss= X-Google-Smtp-Source: ABdhPJxTE5r63hf8eI7wZt/uYaOiCPyEGr1/XyPgXSbJs/98USNILoTAnMp6Cve1iaWQz9nWGwicTQ== X-Received: by 2002:a17:906:33d8:: with SMTP id w24mr25870972eja.28.1620660197029; Mon, 10 May 2021 08:23:17 -0700 (PDT) Sender: =?UTF-8?Q?Philippe_Mathieu=2DDaud=C3=A9?= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Willian Rampazzo , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Thomas Huth , Kyle Evans , Warner Losh Subject: [PATCH 4/4] gitlab-ci: Add ccache in $PATH and display statistics Date: Mon, 10 May 2021 17:22:54 +0200 Message-Id: <20210510152254.2543047-5-f4bug@amsat.org> X-Mailer: git-send-email 2.26.3 In-Reply-To: <20210510152254.2543047-1-f4bug@amsat.org> References: <20210510152254.2543047-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) If a runner has ccache installed, use it and display statistics at the end of the build. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- .gitlab-ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a33e51bf453..d9a0252c54d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,13 +21,18 @@ include: then MAKE=3Dgmake JOBS=3D$(sysctl -n hw.ncpu) + PATH=3D/usr/local/libexec/ccache:$PATH ; else MAKE=3Dmake JOBS=3D$(expr $(nproc) + 1) + PATH=3D/usr/lib/ccache:/usr/lib64/ccache:$PATH ; fi - echo "=3D=3D=3D Using $JOBS simultaneous jobs =3D=3D=3D" + - if command -v ccache > /dev/null ; then ccache --zero-stats ; fi + after_script: + - if command -v ccache > /dev/null ; then ccache --show-stats ; fi =20 .native_build_job_template: stage: build --=20 2.26.3