From 387d00648ca64eaec5343cb748f0cbc163d8df12 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Fri, 7 Jul 2017 13:51:05 +0000 Subject: .gitlab-ci.yml: Split the pipeline into 2 stages With an empty cache, every worker must spend 10 minutes pulling all of the sources that are required. There's no point having 5 workers pulling the same things in parallel, so the first stage now contains only 1 job. --- .gitlab-ci.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 94a4e54f..14ecee82 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -20,30 +20,35 @@ before_script: - mkdir -p "$(pwd)/cache" - export XDG_CACHE_HOME="$(pwd)/cache" +# All of the builds use the same set of sources. The first stage should contain +# only one job so that, in the case where the source cache is empty, we only +# have a single job pulling all the sources rather than 5 pulling the same things +# in parallel. stages: - - build + - simple + - cross x86_64-native: - stage: build + stage: simple script: - bst --colors build gnu-toolchain.bst armv8b64-cross: - stage: build + stage: cross script: - bst --colors build --target-arch=armv8l64 gnu-toolchain/stage2.bst armv8l64-cross: - stage: build + stage: cross script: - bst --colors build --target-arch=armv8l64 gnu-toolchain/stage2.bst ppc64b-cross: - stage: build + stage: cross script: - bst --colors build --target-arch=ppc64b gnu-toolchain/stage2.bst ppc64l-cross: - stage: build + stage: cross script: - bst --colors build --target-arch=ppc64l gnu-toolchain/stage2.bst -- cgit v1.2.1