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:
paths:
- /home/conan/.conan/data/
- /home/conan/.conan/
conan:
stage: conan
@ -19,18 +19,20 @@ conan:
- 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 -g cmake -if build
allow_failure: true
artifacts:
paths:
- build/
expire_in: 1 days
# Unix Build
cmake:
stage: cmake
script:
- cmake -S . -B build -D WinBuild=OFF -D GUI=OFF
allow_failure: true
cleanup:
stage: cleanup
# Unix Build
build:
stage: build
script:
- echo "cleaning up"
after_script:
- rm -Rfv build
- cd build
- make