Update .gitlab-ci.yml

This commit is contained in:
Jack Christensen 2024-08-10 23:35:01 -04:00
parent b8a5bb81ca
commit 6c6f9a9c04
1 changed files with 13 additions and 7 deletions

View File

@ -1,16 +1,22 @@
# Define stages
stages:
- setup
- build
- test
# Build job
setup:
stage: setup
image: alpine:latest
script:
- echo "Installing dependencies..."
- apk update && apk add --no-cache git cmake make gcc g++ bash
- echo "Cloning vcpkg..."
- git clone https://github.com/microsoft/vcpkg.git
- cd vcpkg
- ./bootstrap-vcpkg.sh
build:
stage: build
image: gcc:latest # Use GCC for building C/C++ projects
image: alpine:latest
script:
- echo "Installing CMake..."
- apt-get update
- apt-get install -y cmake # Install CMake
- echo "Building the application..."
- mkdir -p build
- cd build