24 lines
554 B
YAML
24 lines
554 B
YAML
stages:
|
|
- setup
|
|
- build
|
|
|
|
setup:
|
|
stage: setup
|
|
image: alpine:latest
|
|
script:
|
|
- echo "Installing dependencies..."
|
|
- apk update && apk add --no-cache git cmake make gcc g++ bash
|
|
- echo "Cloning vcpkg..."
|
|
- git clone https://github.com/microsoft/vcpkg.git
|
|
- cd vcpkg
|
|
- ./bootstrap-vcpkg.sh
|
|
|
|
build:
|
|
stage: build
|
|
image: alpine:latest
|
|
script:
|
|
- echo "Building the application..."
|
|
- mkdir -p build
|
|
- cd build
|
|
- cmake .. -DCMAKE_TOOLCHAIN_FILE=$CI_PROJECT_DIR/vcpkg/scripts/buildsystems/vcpkg.cmake
|
|
- make |