From d3daa23b83e6a86ecfe668a86a7a875dd277493e Mon Sep 17 00:00:00 2001 From: "15089880081@163.com" <15089880081@163.com> Date: Wed, 7 Aug 2024 17:32:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E7=BC=96=E8=AF=91=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitlab-ci.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..9c2183d2 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,33 @@ +stages: + - build + - test + - deploy + +variables: + BUILD_DIR: "build" + +before_script: + - mkdir -p $BUILD_DIR + - cd $BUILD_DIR + +build: + stage: build + script: + - cmake .. + - cmake --build . + artifacts: + paths: + - $BUILD_DIR + +test: + stage: test + script: + - cd $BUILD_DIR + - ctest --output-on-failure + +deploy: + stage: deploy + script: + - echo "Deploying..." + only: + - main