Create own docker image for cmake environment

This commit is contained in:
Jack Christensen 2024-08-10 23:48:31 -04:00
parent b192fa1e95
commit 64acbd7460
1 changed files with 10 additions and 7 deletions

View File

@ -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