ugh, apparently bug in gitlab-runner, try workaround
This commit is contained in:
parent
1f862b65c4
commit
1ef77bd840
@ -4,12 +4,16 @@ stages:
|
|||||||
- build
|
- build
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
|
key: apt-cache
|
||||||
paths:
|
paths:
|
||||||
- apt-cache/
|
- 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:
|
build:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- apt update && apt -o dir::cache::archives="apt-cache" install -y build-essential cmake
|
|
||||||
- gcc --version
|
- gcc --version
|
||||||
- mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j
|
- mkdir -p build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. && make -j
|
||||||
|
Loading…
x
Reference in New Issue
Block a user