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: stages:
- check - build
- test
# Define a job for the check stage # Build job
check_pipeline: build:
stage: check stage: build
image: alpine:latest # Use a lightweight Docker image image: gcc:latest # Use GCC for building C/C++ projects
script: script:
- echo "Pipeline is running!" - echo "Building the application..."
- uname -a # Print system information - mkdir -p build
- whoami # Print current user - cd build
- cmake .. # Configure the build
- make # Compile the application