Ad ci testing

This commit is contained in:
Jack Christensen 2024-08-10 21:30:29 -04:00
parent a1ba01324d
commit 982d9574c7
1 changed files with 22 additions and 0 deletions

22
.gitlab-ci.yaml Normal file
View File

@ -0,0 +1,22 @@
stages:
- build
variables:
VCPKG_ROOT: "$CI_PROJECT_DIR/vcpkg"
VCPKG_DEFAULT_TRIPLET: "x64-windows"
before_script:
# Install dependencies for building with CMake and vcpkg
- mkdir -p $VCPKG_ROOT
- git clone https://github.com/microsoft/vcpkg.git $VCPKG_ROOT
- $VCPKG_ROOT/bootstrap-vcpkg.sh
- $VCPKG_ROOT/vcpkg install glew:$VCPKG_DEFAULT_TRIPLET glfw3:$VCPKG_DEFAULT_TRIPLET
build:
stage: build
script:
- cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake
- cmake --build build
tags:
- windows