Add release to .gitlab-ci.yml

This commit is contained in:
Jack 2024-08-29 01:12:10 -04:00
parent 0ffef286eb
commit 353ba0ef63
1 changed files with 17 additions and 0 deletions

View File

@ -4,9 +4,11 @@ image: jmchr/opengl-test-env:latest
stages: stages:
- build - build
- test - test
- release
variables: variables:
VCPKG_ROOT: "/vcpkg" VCPKG_ROOT: "/vcpkg"
CMAKE_BUILD_TYPE: "Release"
build: build:
stage: build stage: build
@ -33,3 +35,18 @@ run_tests:
- export TEST_MODE=1 - export TEST_MODE=1
- cd build - cd build
- ./TerraVisor - ./TerraVisor
release_job:
stage: release
dependencies:
- build
script:
- cd build
- mkdir -p release
- cp terravisor release/
artifacts:
paths:
- build/release/
only:
- main