Create own docker image for cmake environment
This commit is contained in:
parent
b192fa1e95
commit
64acbd7460
|
@ -1,18 +1,21 @@
|
||||||
stages:
|
stages:
|
||||||
|
- setup
|
||||||
- build
|
- build
|
||||||
|
|
||||||
build:
|
setup:
|
||||||
stage: build
|
stage: setup
|
||||||
image: alpine:latest
|
image: admin/cmake-build-env
|
||||||
script:
|
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..."
|
- echo "Cloning and setting up vcpkg..."
|
||||||
- git clone https://github.com/microsoft/vcpkg.git
|
- git clone https://github.com/microsoft/vcpkg.git
|
||||||
- cd vcpkg
|
- cd vcpkg
|
||||||
- export VCPKG_FORCE_SYSTEM_BINARIES=1
|
|
||||||
- ./bootstrap-vcpkg.sh
|
- ./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..."
|
- echo "Building the application..."
|
||||||
- mkdir -p build
|
- mkdir -p build
|
||||||
- cd build
|
- cd build
|
||||||
|
|
Loading…
Reference in New Issue