From 5be3db6f0a73e3b7a3653ce90a78812f282bf5c9 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 10 Aug 2024 23:29:50 -0400 Subject: [PATCH] Add build test --- .gitlab-ci.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index e6b22ae..a657ef7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file + - echo "Building the application..." + - mkdir -p build + - cd build + - cmake .. # Configure the build + - make # Compile the application \ No newline at end of file