106 lines
1.8 KiB
YAML
106 lines
1.8 KiB
YAML
stages:
|
|
- cmake
|
|
- build
|
|
- post
|
|
|
|
cache:
|
|
paths:
|
|
- /home/conan/.conan/
|
|
|
|
# Unix Build
|
|
cmake:
|
|
stage: cmake
|
|
image: conanio/gcc9:latest
|
|
script:
|
|
- mkdir build
|
|
- cd build
|
|
- conan remote add bintray https://api.bintray.com/conan/lheili/LibConfig
|
|
- conan user lukas-heiligenbrunner -r bintray -p $CONAN_KEY
|
|
- conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
|
|
- CONAN_SYSREQUIRES_MODE=enabled conan install .. --build=missing
|
|
- cd ..
|
|
- cmake -S . -B build -D WinBuild=OFF -D GUI=OFF
|
|
artifacts:
|
|
paths:
|
|
- build/
|
|
- inc/
|
|
- postinst
|
|
|
|
build:
|
|
stage: build
|
|
image: luki42/dynuiprefresher_build:latest
|
|
script:
|
|
- cd build
|
|
- make dynuiprefresher
|
|
artifacts:
|
|
paths:
|
|
- build/
|
|
- inc/
|
|
- postinst
|
|
dependencies:
|
|
- cmake
|
|
|
|
|
|
build_package:
|
|
stage: post
|
|
image: luki42/dynuiprefresher_build:latest
|
|
script:
|
|
- cd build
|
|
- make package
|
|
artifacts:
|
|
paths:
|
|
- build/
|
|
- inc/
|
|
- postinst
|
|
dependencies:
|
|
- build
|
|
|
|
test:
|
|
stage: post
|
|
image: luki42/dynuiprefresher_build:latest
|
|
script:
|
|
- cd build
|
|
- make build-test
|
|
artifacts:
|
|
reports:
|
|
junit: build/*.xml
|
|
dependencies:
|
|
- build
|
|
|
|
# Windows Build
|
|
cmake_win64:
|
|
stage: cmake
|
|
image: luki42/dynuiprefresher_build:windows
|
|
script:
|
|
- cmake -S . -B build -D WinBuild=ON
|
|
artifacts:
|
|
paths:
|
|
- build/
|
|
- inc/
|
|
|
|
build_win64:
|
|
stage: build
|
|
image: luki42/dynuiprefresher_build:windows
|
|
script:
|
|
- cd build
|
|
- make dynuiprefresher
|
|
artifacts:
|
|
paths:
|
|
- build/
|
|
- inc/
|
|
dependencies:
|
|
- cmake_win64
|
|
|
|
|
|
build_package_win64:
|
|
stage: post
|
|
image: luki42/dynuiprefresher_build:windows
|
|
script:
|
|
- cd build
|
|
- make package
|
|
artifacts:
|
|
paths:
|
|
- build/
|
|
- inc/
|
|
dependencies:
|
|
- build_win64 |