Update to add build stage to .gitlab-ci.yml

This commit is contained in:
Jack Christensen 2024-08-12 16:07:57 -04:00
parent 34b641a58d
commit 59fa6c1a21
1 changed files with 10 additions and 6 deletions

View File

@ -1,10 +1,14 @@
# Define the stages of your pipeline
stages:
- check
- build
# Define a job for the check stage
check_pipeline:
stage: check
image: jmchr/terravisor-env:latest
variables:
VCPKG_ROOT: "/vcpkg"
build:
stage: build
script:
- echo "TODO - Add tests"
# Set the VCPKG_TOOLCHAIN environment variable
- export VCPKG_TOOLCHAIN=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake
- cmake -B build -S . -G Ninja
- cmake --build build