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 image: alpine:latest
script: script:
- echo "Installing dependencies..." - 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..." - echo "Cloning vcpkg..."
- git clone https://github.com/microsoft/vcpkg.git - git clone https://github.com/microsoft/vcpkg.git
- cd vcpkg - cd vcpkg
- ./bootstrap-vcpkg.sh
- export VCPKG_FORCE_SYSTEM_BINARIES=1 - export VCPKG_FORCE_SYSTEM_BINARIES=1
- ./bootstrap-vcpkg.sh
build: build:
stage: build stage: build
@ -21,5 +21,5 @@ build:
- echo "Building the application..." - echo "Building the application..."
- mkdir -p build - mkdir -p build
- cd build - cd build
- cmake .. -DCMAKE_TOOLCHAIN_FILE=$CI_PROJECT_DIR/vcpkg/scripts/buildsystems/vcpkg.cmake - cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE=$CI_PROJECT_DIR/vcpkg/scripts/buildsystems/vcpkg.cmake
- make - ninja