Add build test

This commit is contained in:
Jack Christensen 2024-08-10 23:29:50 -04:00
parent 4617b18fe4
commit 5be3db6f0a
1 changed files with 12 additions and 9 deletions

View File

@ -1,12 +1,15 @@
# Define the stages of your pipeline
# Define stages
stages:
- check
- build
- test
# Define a job for the check stage
check_pipeline:
stage: check
image: alpine:latest # Use a lightweight Docker image
# Build job
build:
stage: build
image: gcc:latest # Use GCC for building C/C++ projects
script:
- echo "Pipeline is running!"
- uname -a # Print system information
- whoami # Print current user
- echo "Building the application..."
- mkdir -p build
- cd build
- cmake .. # Configure the build
- make # Compile the application