diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a9de079..e3f929e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,7 +8,7 @@ build_backend: stage: build cache: paths: - - /root/.cache/vcpkg + - vcpkg_cache script: - apt-get update - apt-get install g++ gcc make cmake git curl zip unzip tar python3 pkg-config -y @@ -18,7 +18,7 @@ build_backend: - git clone https://github.com/Microsoft/vcpkg.git . - ./bootstrap-vcpkg.sh -disableMetrics - cd $SRC - - cmake -B build -S backend -DCMAKE_TOOLCHAIN_FILE=$TMP/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Release + - VCPKG_DEFAULT_BINARY_CACHE=$SRC/vcpkg_cache cmake -B build -S backend -DCMAKE_TOOLCHAIN_FILE=$TMP/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Release - cmake --build build - cp build/backend server artifacts: