Commit dde7db22 authored by David Geisler's avatar David Geisler

build script

parent 539a9add
stages:
- build
- test
- package
build-debug:
stage: build
tags:
- gcc
variables:
GIT_SUBMODULE_STRATEGY: recursive
CMAKE_BUILD_TYPE: Debug
CMAKE_INSTALL_PREFIX: ./install
script:
- mkdir cmake-build-debug
- cd cmake-build-debug
- ../cmake/cmake-3.16.0-rc3-Linux-x86_64/bin/cmake -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$CMAKE_INSTALL_PREFIX ..
- make all
- make install
- zip -r debug.zip install/*
artifacts:
paths:
- cmake-build-debug/debug.zip
build-release:
stage: build
tags:
- gcc
variables:
GIT_SUBMODULE_STRATEGY: recursive
CMAKE_BUILD_TYPE: Release
CMAKE_INSTALL_PREFIX: ./install
script:
- mkdir cmake-build-release
- cd cmake-build-release
- ../cmake/cmake-3.16.0-rc3-Linux-x86_64/bin/cmake -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$CMAKE_INSTALL_PREFIX ..
- make all
- make install
- zip -r release.zip install/*
artifacts:
paths:
- cmake-build-release/release.zip
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment