1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-07 02:15:32 +00:00

Update .gitlab-ci.yml

This commit is contained in:
Bret Curtis 2018-06-22 15:13:09 +00:00
parent 516fc0283b
commit dcba3a1058

View file

@ -1,6 +1,4 @@
# use the official gcc image, based on debian linux-stable:
# can use verions as well, like gcc:5.2
# see https://hub.docker.com/_/gcc/
image: gcc image: gcc
cache: cache:
@ -30,13 +28,15 @@ build:
artifacts: artifacts:
paths: paths:
- build/artifacts/ - build/artifacts/
# depending on your build setup it's most likely a good idea to cache outputs to reduce the build time darwin:
cache: build:
stage: build
script:
- cores_to_use=$((`nproc`-2)); if (( $cores_to_use < 1 )); then cores_to_use=1; fi
- mkdir build; cd build; cmake -DCMAKE_BUILD_TYPE=MinSizeRel ../
- make -j$cores_to_use
- DESTDIR=artifacts make install
artifacts:
paths: paths:
- "*.o" - build/artifacts/
# TODO: run tests using the binary built before
#test:
# stage: test
# script:
# - ls