From 1ef77bd84002370da3533570f3408695b87cfe2c Mon Sep 17 00:00:00 2001 From: Phuntsok Drak-pa Date: Sun, 11 Nov 2018 18:41:02 +0100 Subject: [PATCH] ugh, apparently bug in gitlab-runner, try workaround --- .gitlab-ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2608a27..5236ed9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,12 +4,16 @@ stages: - build cache: + key: apt-cache paths: - apt-cache/ +before_script: + - export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR + - sudo apt-get update -yq && sudo apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y build-essential cmake + build: stage: build script: - - apt update && apt -o dir::cache::archives="apt-cache" install -y build-essential cmake - gcc --version - mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j