Add ninja to .gitlab-ci.yml

This commit is contained in:
Jack Christensen 2024-08-10 23:38:07 -04:00
parent 0fbe47751f
commit 86d33418f7
1 changed files with 4 additions and 4 deletions

View File

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