Force system binaries on alpine
This commit is contained in:
parent
d7841ad486
commit
006374aef8
@ -3,8 +3,9 @@ stages:
|
|||||||
- package
|
- package
|
||||||
- release
|
- release
|
||||||
|
|
||||||
.backend_base:
|
build_backend_glibc:
|
||||||
stage: build
|
stage: build
|
||||||
|
image: reg.gitlab.mattv.de/root/docker-images/ubuntu_build_base:latest
|
||||||
script:
|
script:
|
||||||
- SRC="$PWD"
|
- SRC="$PWD"
|
||||||
- TMP=$(mktemp -d)
|
- TMP=$(mktemp -d)
|
||||||
@ -16,25 +17,35 @@ stages:
|
|||||||
- 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
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- server
|
|
||||||
|
|
||||||
build_backend_glibc:
|
|
||||||
extends: .backend_base
|
|
||||||
image: reg.gitlab.mattv.de/root/docker-images/ubuntu_build_base:latest
|
|
||||||
cache:
|
cache:
|
||||||
key: backend_glibc
|
key: backend_glibc
|
||||||
paths:
|
paths:
|
||||||
- vcpkg_cache
|
- vcpkg_cache
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- server
|
||||||
|
|
||||||
build_backend_muslc:
|
build_backend_muslc:
|
||||||
extends: .backend_base
|
stage: build
|
||||||
image: reg.gitlab.mattv.de/root/docker-images/alpine_build_base:latest
|
image: reg.gitlab.mattv.de/root/docker-images/alpine_build_base:latest
|
||||||
|
script:
|
||||||
|
- SRC="$PWD"
|
||||||
|
- TMP=$(mktemp -d)
|
||||||
|
- cd $TMP
|
||||||
|
- git clone https://github.com/Microsoft/vcpkg.git .
|
||||||
|
- ./bootstrap-vcpkg.sh -disableMetrics
|
||||||
|
- cd $SRC
|
||||||
|
- mkdir -p vcpkg_cache
|
||||||
|
- VCPKG_FORCE_SYSTEM_BINARIES=1 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
|
||||||
cache:
|
cache:
|
||||||
key: backend_muslc
|
key: backend_muslc
|
||||||
paths:
|
paths:
|
||||||
- vcpkg_cache
|
- vcpkg_cache
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- server
|
||||||
|
|
||||||
test_and_build_frontend:
|
test_and_build_frontend:
|
||||||
image: node:latest
|
image: node:latest
|
||||||
|
Loading…
Reference in New Issue
Block a user