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