use job artifacts to share cmake generated files between jobs

This commit is contained in:
Lukas Heiligenbrunner 2020-10-31 11:14:48 +01:00
parent 20bd14ad95
commit d4d9b13b20

View File

@ -9,7 +9,7 @@ image: conanio/gcc9:latest
cache: cache:
paths: paths:
- /home/conan/.conan/data/ - /home/conan/.conan/
conan: conan:
stage: conan stage: conan
@ -19,18 +19,20 @@ conan:
- conan user lukas-heiligenbrunner -r bintray -p $CONAN_KEY - conan user lukas-heiligenbrunner -r bintray -p $CONAN_KEY
- conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan - conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan
- CONAN_SYSREQUIRES_MODE=enabled conan install . --build=missing -g cmake -if build - CONAN_SYSREQUIRES_MODE=enabled conan install . --build=missing -g cmake -if build
allow_failure: true artifacts:
paths:
- build/
expire_in: 1 days
# Unix Build # Unix Build
cmake: cmake:
stage: cmake stage: cmake
script: script:
- cmake -S . -B build -D WinBuild=OFF -D GUI=OFF - cmake -S . -B build -D WinBuild=OFF -D GUI=OFF
allow_failure: true
cleanup: # Unix Build
stage: cleanup build:
stage: build
script: script:
- echo "cleaning up" - cd build
after_script: - make
- rm -Rfv build