This commit is contained in:
Mutzi 2022-08-31 14:55:44 +02:00
parent b4d2b88d40
commit 16177b98ef

View File

@ -7,6 +7,7 @@ stages:
build_backend: build_backend:
stage: build stage: build
cache: cache:
key: backend
paths: paths:
- vcpkg_cache - vcpkg_cache
script: script:
@ -18,6 +19,7 @@ build_backend:
- git clone https://github.com/Microsoft/vcpkg.git . - git clone https://github.com/Microsoft/vcpkg.git .
- ./bootstrap-vcpkg.sh -disableMetrics - ./bootstrap-vcpkg.sh -disableMetrics
- cd $SRC - cd $SRC
- mkdir -p vcpkg_cache
- VCPKG_DEFAULT_BINARY_CACHE=$SRC/vcpkg_cache 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 - cmake --build build
- cp build/backend server - cp build/backend server
@ -30,6 +32,7 @@ test_and_build_frontend:
image: node:latest image: node:latest
stage: build stage: build
cache: cache:
key: frontend
paths: paths:
- frontend/.yarn - frontend/.yarn
- frontend/node_modules - frontend/node_modules