Commit 02a418b6 authored by David Geisler's avatar David Geisler

simplify build scripts

parent 95f8e3c4
......@@ -14,14 +14,12 @@ build-debug:
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 ..
- ../cmake/cmake-3.16.0-rc3-Linux-x86_64/bin/cmake -DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$CMAKE_INSTALL_PREFIX -DCMAKE_CXX_FLAGS_RELEASE=-O3 ..
- make all
- make install
- cd install
- zip -r debug.zip ./*
artifacts:
paths:
- cmake-build-debug/install/debug.zip
- cmake-build-debug/install
build-release:
stage: build
......@@ -34,11 +32,25 @@ build-release:
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 -DCMAKE_CXX_FLAGS_RELEASE=-O3 ..
- ../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
- cd install
- zip -r release.zip ./*
artifacts:
paths:
- cmake-build-release/install/release.zip
- cmake-build-release/install
build-doxygen:
stage: build
tags:
- gcc
variables:
GIT_SUBMODULE_STRATEGY: recursive
CMAKE_BUILD_TYPE: Release
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 ..
- make doxygen
artifacts:
paths:
- cmake-build-release/doxygen
\ No newline at end of file
Subproject commit 6bb7c25a00bee6c1213d34f90961ddf5678b495a
Subproject commit f1bc0f26c33518139b23881cb12a01b35f874d63
Subproject commit 64adbaa9183a09dfd859ef93df88b2a4e54abf5c
Subproject commit 4cc65d5b38a25ff1caf580f3a274eecacf1958cc
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