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