terravisor/.gitlab-ci.yml

21 lines
594 B
YAML

stages:
- build
build:
stage: build
image: alpine:latest
script:
- echo "Installing dependencies..."
- apk update && apk add --no-cache curl zip unzip tar git cmake make gcc g++ bash ninja
- echo "Cloning and setting up vcpkg..."
- git clone https://github.com/microsoft/vcpkg.git
- cd vcpkg
- export VCPKG_FORCE_SYSTEM_BINARIES=1
- ./bootstrap-vcpkg.sh
- cd ..
- echo "Building the application..."
- mkdir -p build
- cd build
- cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE=$CI_PROJECT_DIR/vcpkg/scripts/buildsystems/vcpkg.cmake
- ninja