Update .gitlab-ci.yml
This commit is contained in:
parent
b8a5bb81ca
commit
6c6f9a9c04
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue