From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Laszlo Ersek <lersek@redhat.com>, qemu-devel@nongnu.org
Cc: "Alex Bennée" <alex.bennee@linaro.org>,
"Thomas Huth" <thuth@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@redhat.com>
Subject: [PATCH 3/3] gitlab-ci-edk2.yml: Use ccache
Date: Mon, 6 Jan 2020 19:46:01 +0100 [thread overview]
Message-ID: <20200106184601.25453-4-philmd@redhat.com> (raw)
In-Reply-To: <20200106184601.25453-1-philmd@redhat.com>
By using ccache we reduce the job duration from
40 minutes 26 seconds to 32 minutes 6 seconds.
Running after script...
$ ccache --show-stats
cache hit (direct) 6604
files in cache 12090
cache size 335.5 MB
For now downloading this cache takes 16 seconds, archiving
it 44 seconds.
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
.gitlab-ci-edk2.yml | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/.gitlab-ci-edk2.yml b/.gitlab-ci-edk2.yml
index abfaf52874..329ba24f20 100644
--- a/.gitlab-ci-edk2.yml
+++ b/.gitlab-ci-edk2.yml
@@ -14,12 +14,19 @@ build-edk2:
- edk2-stdout.log
- edk2-stderr.log
image: ubuntu:16.04 # Use Ubuntu Xenial
+ variables:
+ CCACHE_DIR: ${CI_PROJECT_DIR}/.ccache
+ cache: # Use the same cache for all EDK2 jobs
+ key: ubuntu16.04-edk2-ccache
+ paths:
+ - ${CCACHE_DIR}
before_script: # Install packages requiered to build EDK2
- apt-get update --quiet --quiet
- DEBIAN_FRONTEND=noninteractive
apt-get install --assume-yes --no-install-recommends --quiet --quiet
build-essential
ca-certificates
+ ccache
dos2unix
gcc-aarch64-linux-gnu
gcc-arm-linux-gnueabi
@@ -29,9 +36,13 @@ build-edk2:
nasm
python
uuid-dev
+ - export PATH=/usr/lib/ccache:$PATH
+ - ccache --zero-stats
script: # Clone the required submodules and build EDK2
- git submodule update --init roms/edk2
- git -C roms/edk2 submodule update --init
- export JOBS=$(($(getconf _NPROCESSORS_ONLN) + 1))
- echo "=== Using ${JOBS} simultaneous jobs ==="
- make -j${JOBS} -C roms efi 1>edk2-stdout.log 2> >(tee -a edk2-stderr.log >&2)
+ after_script:
+ - ccache --show-stats
--
2.21.1
next prev parent reply other threads:[~2020-01-06 19:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-06 18:45 [PATCH 0/3] gitlab-ci: Add a job to build EDK2 firmware binaries Philippe Mathieu-Daudé
2020-01-06 18:45 ` [PATCH 1/3] roms/edk2-funcs: Force softfloat ARM toolchain prefix on Debian Philippe Mathieu-Daudé
2020-01-07 9:41 ` Laszlo Ersek
2020-01-06 18:46 ` [PATCH 2/3] gitlab-ci.yml: Add a job to build EDK2 firmware binaries Philippe Mathieu-Daudé
2020-01-07 7:48 ` Philippe Mathieu-Daudé
2020-01-07 10:12 ` Laszlo Ersek
2020-01-07 11:35 ` Philippe Mathieu-Daudé
2020-01-07 18:55 ` Laszlo Ersek
2020-01-06 18:46 ` Philippe Mathieu-Daudé [this message]
2020-01-07 10:19 ` [PATCH 3/3] gitlab-ci-edk2.yml: Use ccache Laszlo Ersek
2020-01-07 10:23 ` Philippe Mathieu-Daudé
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200106184601.25453-4-philmd@redhat.com \
--to=philmd@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=lersek@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).