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
|
2020-06-22 10:41:51 +00:00
|
|
|
image: debian:bullseye
|
2018-06-12 12:46:19 +00:00
|
|
|
cache:
|
2020-01-07 06:49:53 +00:00
|
|
|
key: cache.002
|
2018-06-12 12:46:19 +00:00
|
|
|
paths:
|
2018-06-22 15:13:09 +00:00
|
|
|
- apt-cache/
|
2020-01-07 06:49:53 +00:00
|
|
|
- ccache/
|
2018-06-22 15:13:09 +00:00
|
|
|
before_script:
|
|
|
|
- export APT_CACHE_DIR=`pwd`/apt-cache && mkdir -pv $APT_CACHE_DIR
|
|
|
|
- apt-get update -yq
|
2020-01-07 06:49:53 +00:00
|
|
|
- apt-get -o dir::cache::archives="$APT_CACHE_DIR" install -y cmake build-essential 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 libqt5opengl5-dev libopenal-dev libopenscenegraph-dev libunshield-dev libtinyxml-dev libmygui-dev libbullet-dev ccache
|
2018-06-22 15:20:38 +00:00
|
|
|
stage: build
|
2020-01-07 06:49:53 +00:00
|
|
|
script:
|
|
|
|
- export CCACHE_BASEDIR="`pwd`"
|
|
|
|
- export CCACHE_DIR="`pwd`/ccache" && mkdir -pv "$CCACHE_DIR"
|
|
|
|
- ccache -z -M 250M
|
2018-06-22 15:20:38 +00:00
|
|
|
- cores_to_use=$((`nproc`-2)); if (( $cores_to_use < 1 )); then cores_to_use=1; fi
|
2020-01-07 06:49:53 +00:00
|
|
|
- mkdir build; cd build; cmake -DCMAKE_BUILD_TYPE=MinSizeRel ../ -DCMAKE_C_COMPILER_LAUNCHER=ccache -DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
2018-06-22 15:20:38 +00:00
|
|
|
- make -j$cores_to_use
|
|
|
|
- DESTDIR=artifacts make install
|
2020-01-07 06:49:53 +00:00
|
|
|
- ccache -s
|
2018-06-22 15:20:38 +00:00
|
|
|
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
|
|
|
|
|
2020-07-13 16:08:46 +00:00
|
|
|
variables: &engine-targets
|
|
|
|
targets: openmw openmw-essimporter openmw-iniimporter openmw-launcher openmw-wizard
|
|
|
|
|
|
|
|
variables: &cs-targets
|
|
|
|
targets: openmw-cs bsatool esmtool niftest
|
|
|
|
|
2020-07-11 15:36:21 +00:00
|
|
|
.Windows_Ninja_Base:
|
2018-06-27 11:57:51 +00:00
|
|
|
tags:
|
2020-04-21 21:44:55 +00:00
|
|
|
- windows
|
2020-06-27 01:05:17 +00:00
|
|
|
before_script:
|
2020-07-13 15:53:23 +00:00
|
|
|
- Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
|
|
|
- choco install git --force --params "/GitAndUnixToolsOnPath" -y
|
|
|
|
- choco install 7zip -y
|
|
|
|
- choco install cmake.install --installargs 'ADD_CMAKE_TO_PATH=System' -y
|
|
|
|
- choco install vswhere -y
|
|
|
|
- choco install ninja -y
|
|
|
|
- choco install python -y
|
|
|
|
- refreshenv
|
2020-06-27 01:05:17 +00:00
|
|
|
stage: build
|
|
|
|
script:
|
2020-07-13 15:53:23 +00:00
|
|
|
- $time = (Get-Date -Format "HH:mm:ss")
|
|
|
|
- echo ${time}
|
|
|
|
- echo "started by ${GITLAB_USER_NAME}"
|
|
|
|
- sh CI/before_script.msvc.sh -c $config -p Win64 -v 2019 -k -V -N
|
|
|
|
- cd MSVC2019_64_Ninja
|
|
|
|
- .\ActivateMSVC.ps1
|
2020-07-13 16:08:46 +00:00
|
|
|
- cmake --build . --config $config --target $targets
|
2020-07-13 15:53:23 +00:00
|
|
|
- cd $config
|
2020-06-27 01:05:17 +00:00
|
|
|
- |
|
|
|
|
if (Get-ChildItem -Recurse *.pdb) {
|
2020-07-13 15:53:23 +00:00
|
|
|
7z a -tzip ..\..\OpenMW_MSVC2019_64_${config}_${CI_COMMIT_REF_NAME}_${CI_JOB_ID}_symbols.zip '*.pdb'
|
|
|
|
Get-ChildItem -Recurse *.pdb | Remove-Item
|
2020-06-27 01:05:17 +00:00
|
|
|
}
|
2020-07-13 15:53:23 +00:00
|
|
|
- 7z a -tzip ..\..\OpenMW_MSVC2019_64_${config}_${CI_COMMIT_REF_NAME}_${CI_JOB_ID}.zip '*'
|
2020-06-27 01:05:17 +00:00
|
|
|
cache:
|
2020-07-12 14:08:47 +00:00
|
|
|
key: ninja-v2
|
2020-06-27 01:05:17 +00:00
|
|
|
paths:
|
|
|
|
- deps
|
2020-07-12 12:58:12 +00:00
|
|
|
- MSVC2019_64_Ninja/deps/Qt
|
2020-06-27 01:05:17 +00:00
|
|
|
artifacts:
|
|
|
|
when: always
|
|
|
|
paths:
|
2020-06-27 01:08:25 +00:00
|
|
|
- "*.zip"
|
|
|
|
- "*.log"
|
2020-07-11 21:46:12 +00:00
|
|
|
- MSVC2019_64_Ninja/*.log
|
2020-07-12 02:17:46 +00:00
|
|
|
- MSVC2019_64_Ninja/*/*.log
|
|
|
|
- MSVC2019_64_Ninja/*/*/*.log
|
|
|
|
- MSVC2019_64_Ninja/*/*/*/*.log
|
|
|
|
- MSVC2019_64_Ninja/*/*/*/*/*.log
|
|
|
|
- MSVC2019_64_Ninja/*/*/*/*/*/*.log
|
|
|
|
- MSVC2019_64_Ninja/*/*/*/*/*/*/*.log
|
|
|
|
- MSVC2019_64_Ninja/*/*/*/*/*/*/*/*.log
|
2020-06-27 01:05:17 +00:00
|
|
|
|
2020-07-13 16:08:46 +00:00
|
|
|
Windows_Ninja_Engine_Release:
|
|
|
|
extends:
|
|
|
|
- .Windows_Ninja_Base
|
|
|
|
variables:
|
|
|
|
<<: *engine-targets
|
|
|
|
config: "Release"
|
|
|
|
|
|
|
|
Windows_Ninja_Engine_Debug:
|
|
|
|
extends:
|
|
|
|
- .Windows_Ninja_Base
|
|
|
|
variables:
|
|
|
|
<<: *engine-targets
|
|
|
|
config: "Debug"
|
|
|
|
|
|
|
|
Windows_Ninja_Engine_RelWithDebInfo:
|
|
|
|
extends:
|
|
|
|
- .Windows_Ninja_Base
|
|
|
|
variables:
|
|
|
|
<<: *engine-targets
|
|
|
|
config: "RelWithDebInfo"
|
|
|
|
|
|
|
|
Windows_Ninja_CS_Release:
|
2020-07-11 15:36:21 +00:00
|
|
|
extends:
|
|
|
|
- .Windows_Ninja_Base
|
|
|
|
variables:
|
2020-07-13 16:08:46 +00:00
|
|
|
<<: *cs-targets
|
2020-07-11 15:54:13 +00:00
|
|
|
config: "Release"
|
2020-06-27 01:05:17 +00:00
|
|
|
|
2020-07-13 16:08:46 +00:00
|
|
|
Windows_Ninja_CS_Debug:
|
2020-07-11 15:36:21 +00:00
|
|
|
extends:
|
|
|
|
- .Windows_Ninja_Base
|
|
|
|
variables:
|
2020-07-13 16:08:46 +00:00
|
|
|
<<: *cs-targets
|
2020-07-11 15:54:13 +00:00
|
|
|
config: "Debug"
|
2020-07-11 15:36:21 +00:00
|
|
|
|
2020-07-13 16:08:46 +00:00
|
|
|
Windows_Ninja_CS_RelWithDebInfo:
|
2020-07-11 15:36:21 +00:00
|
|
|
extends:
|
|
|
|
- .Windows_Ninja_Base
|
|
|
|
variables:
|
2020-07-13 16:08:46 +00:00
|
|
|
<<: *cs-targets
|
2020-07-11 15:54:13 +00:00
|
|
|
config: "RelWithDebInfo"
|
2020-07-11 15:36:21 +00:00
|
|
|
|
|
|
|
.Windows_MSBuild_Base:
|
2020-06-27 01:05:17 +00:00
|
|
|
tags:
|
|
|
|
- windows
|
|
|
|
before_script:
|
2020-07-13 15:53:23 +00:00
|
|
|
- Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
|
|
|
|
- choco install git --force --params "/GitAndUnixToolsOnPath" -y
|
|
|
|
- choco install 7zip -y
|
|
|
|
- choco install cmake.install --installargs 'ADD_CMAKE_TO_PATH=System' -y
|
|
|
|
- choco install vswhere -y
|
|
|
|
- choco install python -y
|
|
|
|
- refreshenv
|
2018-06-27 11:57:51 +00:00
|
|
|
stage: build
|
|
|
|
script:
|
2020-07-13 15:53:23 +00:00
|
|
|
- $time = (Get-Date -Format "HH:mm:ss")
|
|
|
|
- echo ${time}
|
|
|
|
- echo "started by ${GITLAB_USER_NAME}"
|
|
|
|
- sh CI/before_script.msvc.sh -c $config -p Win64 -v 2019 -k -V
|
|
|
|
- cd MSVC2019_64
|
2020-07-13 16:08:46 +00:00
|
|
|
- cmake --build . --config $config --target $targets
|
2020-07-13 15:53:23 +00:00
|
|
|
- cd $config
|
2020-06-27 01:05:17 +00:00
|
|
|
- |
|
|
|
|
if (Get-ChildItem -Recurse *.pdb) {
|
2020-07-13 15:53:23 +00:00
|
|
|
7z a -tzip ..\..\OpenMW_MSVC2019_64_${config}_${CI_COMMIT_REF_NAME}_${CI_JOB_ID}_symbols.zip '*.pdb'
|
|
|
|
Get-ChildItem -Recurse *.pdb | Remove-Item
|
2020-06-27 01:05:17 +00:00
|
|
|
}
|
2020-07-13 15:53:23 +00:00
|
|
|
- 7z a -tzip ..\..\OpenMW_MSVC2019_64_${config}_${CI_COMMIT_REF_NAME}_${CI_JOB_ID}.zip '*'
|
2018-06-27 11:57:51 +00:00
|
|
|
cache:
|
2020-07-12 14:08:47 +00:00
|
|
|
key: msbuild-v2
|
2018-06-27 11:57:51 +00:00
|
|
|
paths:
|
2018-06-27 13:25:23 +00:00
|
|
|
- deps
|
2020-07-12 12:58:12 +00:00
|
|
|
- MSVC2019_64/deps/Qt
|
2018-06-27 11:57:51 +00:00
|
|
|
artifacts:
|
2020-06-27 01:05:17 +00:00
|
|
|
when: always
|
2018-06-27 11:57:51 +00:00
|
|
|
paths:
|
2020-06-27 01:08:25 +00:00
|
|
|
- "*.zip"
|
|
|
|
- "*.log"
|
2020-07-11 21:46:12 +00:00
|
|
|
- MSVC2019_64/*.log
|
2020-07-12 02:17:46 +00:00
|
|
|
- MSVC2019_64/*/*.log
|
|
|
|
- MSVC2019_64/*/*/*.log
|
|
|
|
- MSVC2019_64/*/*/*/*.log
|
|
|
|
- MSVC2019_64/*/*/*/*/*.log
|
|
|
|
- MSVC2019_64/*/*/*/*/*/*.log
|
|
|
|
- MSVC2019_64/*/*/*/*/*/*/*.log
|
|
|
|
- MSVC2019_64/*/*/*/*/*/*/*/*.log
|
2020-07-11 15:36:21 +00:00
|
|
|
|
2020-07-13 16:08:46 +00:00
|
|
|
Windows_MSBuild_Engine_Release:
|
|
|
|
extends:
|
|
|
|
- .Windows_MSBuild_Base
|
|
|
|
variables:
|
|
|
|
<<: *engine-targets
|
|
|
|
config: "Release"
|
|
|
|
|
|
|
|
Windows_MSBuild_Engine_Debug:
|
|
|
|
extends:
|
|
|
|
- .Windows_MSBuild_Base
|
|
|
|
variables:
|
|
|
|
<<: *engine-targets
|
|
|
|
config: "Debug"
|
|
|
|
|
|
|
|
Windows_MSBuild_Engine_RelWithDebInfo:
|
|
|
|
extends:
|
|
|
|
- .Windows_MSBuild_Base
|
|
|
|
variables:
|
|
|
|
<<: *engine-targets
|
|
|
|
config: "RelWithDebInfo"
|
|
|
|
|
|
|
|
Windows_MSBuild_CS_Release:
|
2020-07-11 15:36:21 +00:00
|
|
|
extends:
|
|
|
|
- .Windows_MSBuild_Base
|
|
|
|
variables:
|
2020-07-13 16:08:46 +00:00
|
|
|
<<: *cs-targets
|
2020-07-11 15:54:13 +00:00
|
|
|
config: "Release"
|
2020-07-11 15:36:21 +00:00
|
|
|
|
2020-07-13 16:08:46 +00:00
|
|
|
Windows_MSBuild_CS_Debug:
|
2020-07-11 15:36:21 +00:00
|
|
|
extends:
|
|
|
|
- .Windows_MSBuild_Base
|
|
|
|
variables:
|
2020-07-13 16:08:46 +00:00
|
|
|
<<: *cs-targets
|
2020-07-11 15:54:13 +00:00
|
|
|
config: "Debug"
|
2020-07-11 15:36:21 +00:00
|
|
|
|
2020-07-13 16:08:46 +00:00
|
|
|
Windows_MSBuild_CS_RelWithDebInfo:
|
2020-07-11 15:36:21 +00:00
|
|
|
extends:
|
|
|
|
- .Windows_MSBuild_Base
|
|
|
|
variables:
|
2020-07-13 16:08:46 +00:00
|
|
|
<<: *cs-targets
|
2020-07-12 21:38:48 +00:00
|
|
|
config: "RelWithDebInfo"
|