Back to alpine:latest image

This commit is contained in:
Jack Christensen 2024-08-10 23:51:20 -04:00
parent 5e8f519f41
commit 2685fe4cbd
1 changed files with 14 additions and 3 deletions

View File

@ -2,22 +2,33 @@ stages:
- setup - setup
- build - build
# Setup stage to prepare the environment
setup: setup:
stage: setup stage: setup
image: cmake-build-env:latest image: alpine:latest
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
- ./vcpkg install glew:x64-linux glfw3:x64-linux # Install necessary packages - ./vcpkg install glew:x64-linux glfw3:x64-linux # Install necessary packages
artifacts:
paths:
- vcpkg/
# Build stage to compile the project
build: build:
stage: build stage: build
image: cmake-build-env:latest image: alpine:latest
script: script:
- echo "Building the application..." - echo "Building the application..."
- apk add --no-cache cmake ninja
- mkdir -p build - mkdir -p build
- cd build - cd build
- cmake .. -G Ninja -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
- ninja - ninja
dependencies:
- setup