ugh, apparently bug in gitlab-runner, try workaround

This commit is contained in:
Phuntsok Drak-pa 2018-11-11 18:41:02 +01:00
parent 1f862b65c4
commit 1ef77bd840
1 changed files with 5 additions and 1 deletions

View File

@ -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