2018-06-22 15:14:09 +00:00
|
|
|
stages:
|
|
|
|
- build
|
|
|
|
|
2018-06-23 13:22:20 +00:00
|
|
|
Debian:
|
2018-06-22 15:29:27 +00:00
|
|
|
tags:
|
2020-04-22 08:36:11 +00:00
|
|
|
- docker
|
|
|
|
- linux
|
2018-06-22 15:13:09 +00:00
|
|
|
image: gcc
|
2018-06-12 12:46:19 +00:00
|
|
|
cache:
|
2018-06-22 15:13:09 +00:00
|
|
|
key: apt-cache
|
2018-06-12 12:46:19 +00:00
|
|
|
paths:
|
2018-06-22 15:13:09 +00:00
|
|
|
- apt-cache/
|
|
|
|
before_script:
|
|
|
|
- export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR
|
|
|
|
- apt-get update -yq
|
2019-10-29 14:12:53 +00:00
|
|
|
- apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y cmake libboost-filesystem-dev libboost-program-options-dev libboost-system-dev libboost-iostreams-dev libavcodec-dev libavformat-dev libavutil-dev libswscale-dev libswresample-dev libsdl2-dev libqt4-dev libopenal-dev libopenscenegraph-3.4-dev libunshield-dev libtinyxml-dev libmygui-dev libbullet-dev
|
2018-06-22 15:20:38 +00:00
|
|
|
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:
|
|
|
|
- build/artifacts/
|
2020-04-22 08:36:11 +00:00
|
|
|
|
2018-06-23 13:22:20 +00:00
|
|
|
MacOS:
|
2018-06-22 15:29:27 +00:00
|
|
|
tags:
|
2018-06-22 16:41:20 +00:00
|
|
|
- macos
|
2018-06-23 07:19:05 +00:00
|
|
|
- xcode
|
2018-06-29 15:13:06 +00:00
|
|
|
except:
|
2018-06-29 15:15:29 +00:00
|
|
|
- branches # because our CI VMs are not public, MRs can't use them and timeout
|
2018-06-22 15:20:38 +00:00
|
|
|
stage: build
|
2018-06-23 13:22:20 +00:00
|
|
|
allow_failure: true
|
2018-06-23 13:50:58 +00:00
|
|
|
script:
|
2018-06-26 17:45:20 +00:00
|
|
|
- rm -fr build/* # remove anything in the build directory
|
2018-06-26 13:54:37 +00:00
|
|
|
- CI/before_install.osx.sh
|
2018-06-23 13:50:58 +00:00
|
|
|
- CI/before_script.osx.sh
|
2018-06-26 15:40:06 +00:00
|
|
|
- cd build; make -j2 package
|
2018-06-22 15:20:38 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-06-27 11:57:51 +00:00
|
|
|
- build/OpenMW-*.dmg
|
|
|
|
|
2018-06-29 15:13:06 +00:00
|
|
|
Windows:
|
2018-06-27 11:57:51 +00:00
|
|
|
tags:
|
2020-04-21 21:44:55 +00:00
|
|
|
- windows
|
2018-06-27 11:57:51 +00:00
|
|
|
stage: build
|
|
|
|
allow_failure: true
|
|
|
|
script:
|
2020-04-21 22:22:48 +00:00
|
|
|
- Set-Variable -Name "time" -Value (date -Format "%H:%m")
|
|
|
|
- echo ${time}
|
|
|
|
- echo "started by ${GITLAB_USER_NAME}"
|
2020-04-22 08:36:11 +00:00
|
|
|
# TODO: to anyone wanting to do further work here, we need to figure out how to get the below working
|
|
|
|
# TODO: on gitlab's new shared windows runners. They currently don't have bash or anything else installed
|
|
|
|
# TODO: it is currently just a bare windows 10 with powershell.
|
|
|
|
# - env # turn on for debugging
|
|
|
|
# - sh %CI_PROJECT_DIR%/CI/before_script.msvc.sh -c Release -p x64 -v 2017 -V
|
|
|
|
# - SET msBuildLocation="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\msbuild.exe"
|
|
|
|
# - call %msBuildLocation% MSVC2017_64\OpenMW.sln /t:Build /p:Configuration=Release /m:%NUMBER_OF_PROCESSORS%
|
|
|
|
# - 7z a OpenMW_MSVC2017_64_%CI_BUILD_REF_NAME%_%CI_BUILD_ID%.zip %CI_PROJECT_DIR%\MSVC2017_64\Release\
|
2018-06-27 11:57:51 +00:00
|
|
|
cache:
|
|
|
|
paths:
|
2018-06-27 13:25:23 +00:00
|
|
|
- deps
|
2018-06-27 11:57:51 +00:00
|
|
|
artifacts:
|
|
|
|
paths:
|
2018-06-28 08:24:34 +00:00
|
|
|
- "*.zip"
|