31 lines
967 B
YAML
31 lines
967 B
YAML
stages:
|
|
- conan
|
|
- cmake
|
|
- build
|
|
- post
|
|
- cleanup
|
|
|
|
image: conanio/gcc9:latest
|
|
|
|
cache:
|
|
paths:
|
|
- .conan/
|
|
|
|
conan:
|
|
stage: conan
|
|
script:
|
|
- export CONAN_USER_HOME=$PWD/.conan #define .conan folder to be inside of project
|
|
- conan profile new default --detect # Generates default profile detecting GCC and sets old ABI
|
|
- conan profile update settings.compiler.libcxx=libstdc++11 default # Sets libcxx to C++11 ABI
|
|
- 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
|
|
- mkdir -p build # create build folder
|
|
- CONAN_SYSREQUIRES_MODE=enabled conan install . --build=missing -g cmake -if build
|
|
- cmake -S . -B build -D WinBuild=OFF -D GUI=OFF #cmake project
|
|
- cd build
|
|
- make #build
|
|
artifacts:
|
|
paths:
|
|
- build/bin/
|
|
expire_in: 1 days |