From 64acbd7460e38880e2bc220aa95abe36738a1737 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 10 Aug 2024 23:48:31 -0400 Subject: [PATCH] Create own docker image for cmake environment --- .gitlab-ci.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0d5d4e1..19fe130 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,18 +1,21 @@ stages: + - setup - build -build: - stage: build - image: alpine:latest +setup: + stage: setup + image: admin/cmake-build-env script: - - echo "Installing dependencies..." - - apk update && apk add --no-cache curl zip unzip tar git cmake make gcc g++ bash ninja - echo "Cloning and setting up vcpkg..." - git clone https://github.com/microsoft/vcpkg.git - cd vcpkg - - export VCPKG_FORCE_SYSTEM_BINARIES=1 - ./bootstrap-vcpkg.sh - - cd .. + - ./vcpkg install glew:x64-linux glfw3:x64-linux # Install necessary packages + +build: + stage: build + image: admin/cmake-build-env + script: - echo "Building the application..." - mkdir -p build - cd build