|
# Define stages
|
|
stages:
|
|
- build
|
|
- test
|
|
|
|
# Build job
|
|
build:
|
|
stage: build
|
|
image: gcc:latest # Use GCC for building C/C++ projects
|
|
script:
|
|
- echo "Building the application..."
|
|
- mkdir -p build
|
|
- cd build
|
|
- cmake .. # Configure the build
|
|
- make # Compile the application |