1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 21:45:35 +00:00

make use of default; make use of hidden templates (.)

This commit is contained in:
Bret Curtis 2022-06-08 20:47:05 +02:00
parent b7e8ed90ed
commit 08d19586a4

View file

@ -1,3 +1,6 @@
default:
interruptible: true
include: include:
- template: Security/SAST.gitlab-ci.yml - template: Security/SAST.gitlab-ci.yml
@ -24,7 +27,6 @@ variables:
image: ubuntu:focal image: ubuntu:focal
rules: rules:
- if: $CI_PIPELINE_SOURCE == "push" - if: $CI_PIPELINE_SOURCE == "push"
interruptible: true
.Ubuntu: .Ubuntu:
@ -106,161 +108,161 @@ Coverity:
paths: paths:
- /builds/OpenMW/openmw/cov-int/build-log.txt - /builds/OpenMW/openmw/cov-int/build-log.txt
#Ubuntu_GCC: .Ubuntu_GCC:
# extends: .Ubuntu extends: .Ubuntu
# cache: cache:
# key: Ubuntu_GCC.v2 key: Ubuntu_GCC.v2
# before_script: before_script:
# - CI/install_debian_deps.sh gcc openmw-deps openmw-deps-dynamic - CI/install_debian_deps.sh gcc openmw-deps openmw-deps-dynamic
# variables: variables:
# CC: gcc CC: gcc
# CXX: g++ CXX: g++
# CCACHE_SIZE: 3G CCACHE_SIZE: 3G
# # When CCache doesn't exist (e.g. first build on a fork), build takes more than 1h, which is the default for forks. # When CCache doesn't exist (e.g. first build on a fork), build takes more than 1h, which is the default for forks.
# timeout: 2h timeout: 2h
#Ubuntu_GCC_tests: .Ubuntu_GCC_tests:
# extends: Ubuntu_GCC extends: Ubuntu_GCC
# cache: cache:
# key: Ubuntu_GCC_tests.v3 key: Ubuntu_GCC_tests.v3
# variables: variables:
# CCACHE_SIZE: 1G CCACHE_SIZE: 1G
# BUILD_TESTS_ONLY: 1 BUILD_TESTS_ONLY: 1
# artifacts: artifacts:
# paths: [] paths: []
# name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA} name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}
# when: always when: always
# reports: reports:
# junit: build/tests.xml junit: build/tests.xml
#Ubuntu_GCC_tests_Debug: .Ubuntu_GCC_tests_Debug:
# extends: Ubuntu_GCC extends: Ubuntu_GCC
# cache: cache:
# key: Ubuntu_GCC_tests_Debug.v2 key: Ubuntu_GCC_tests_Debug.v2
# variables: variables:
# CCACHE_SIZE: 1G CCACHE_SIZE: 1G
# BUILD_TESTS_ONLY: 1 BUILD_TESTS_ONLY: 1
# CMAKE_BUILD_TYPE: Debug CMAKE_BUILD_TYPE: Debug
# CMAKE_CXX_FLAGS_DEBUG: -g -O0 -D_GLIBCXX_ASSERTIONS CMAKE_CXX_FLAGS_DEBUG: -g -O0 -D_GLIBCXX_ASSERTIONS
# artifacts: artifacts:
# paths: [] paths: []
# name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA} name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}
# when: always when: always
# reports: reports:
# junit: build/tests.xml junit: build/tests.xml
#Ubuntu_GCC_tests_asan: .Ubuntu_GCC_tests_asan:
# extends: Ubuntu_GCC extends: Ubuntu_GCC
# cache: cache:
# key: Ubuntu_GCC_asan.v1 key: Ubuntu_GCC_asan.v1
# variables: variables:
# CCACHE_SIZE: 1G CCACHE_SIZE: 1G
# BUILD_TESTS_ONLY: 1 BUILD_TESTS_ONLY: 1
# CMAKE_BUILD_TYPE: Debug CMAKE_BUILD_TYPE: Debug
# CMAKE_CXX_FLAGS_DEBUG: -g -O1 -fno-omit-frame-pointer -fsanitize=address -fsanitize=pointer-compare -fsanitize=pointer-subtract -fsanitize=leak CMAKE_CXX_FLAGS_DEBUG: -g -O1 -fno-omit-frame-pointer -fsanitize=address -fsanitize=pointer-compare -fsanitize=pointer-subtract -fsanitize=leak
# CMAKE_EXE_LINKER_FLAGS: -fsanitize=address -fsanitize=pointer-compare -fsanitize=pointer-subtract -fsanitize=leak CMAKE_EXE_LINKER_FLAGS: -fsanitize=address -fsanitize=pointer-compare -fsanitize=pointer-subtract -fsanitize=leak
# ASAN_OPTIONS: halt_on_error=1:strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1 ASAN_OPTIONS: halt_on_error=1:strict_string_checks=1:detect_stack_use_after_return=1:check_initialization_order=1:strict_init_order=1
# artifacts: artifacts:
# paths: [] paths: []
# name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA} name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}
# when: always when: always
# reports: reports:
# junit: build/tests.xml junit: build/tests.xml
#
#Ubuntu_GCC_tests_ubsan:
# extends: Ubuntu_GCC
# cache:
# key: Ubuntu_GCC_ubsan.v1
# variables:
# CCACHE_SIZE: 1G
# BUILD_TESTS_ONLY: 1
# CMAKE_BUILD_TYPE: Debug
# CMAKE_CXX_FLAGS_DEBUG: -g -O0 -fsanitize=undefined
# UBSAN_OPTIONS: print_stacktrace=1:halt_on_error=1
# artifacts:
# paths: []
# name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}
# when: always
# reports:
# junit: build/tests.xml
#
#Ubuntu_GCC_tests_tsan:
# extends: Ubuntu_GCC
# cache:
# key: Ubuntu_GCC_tsan.v1
# variables:
# CCACHE_SIZE: 1G
# BUILD_TESTS_ONLY: 1
# CMAKE_BUILD_TYPE: Debug
# CMAKE_CXX_FLAGS_DEBUG: -g -O2 -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=thread -fPIE
# CMAKE_EXE_LINKER_FLAGS: -pthread -pie -fsanitize=thread
# TSAN_OPTIONS: second_deadlock_stack=1:halt_on_error=1
# artifacts:
# paths: []
# name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}
# when: always
# reports:
# junit: build/tests.xml
#Ubuntu_GCC_tests_coverage: .Ubuntu_GCC_tests_ubsan:
# extends: Ubuntu_GCC_tests_Debug extends: Ubuntu_GCC
# cache: cache:
# key: Ubuntu_GCC_tests_coverage.v1 key: Ubuntu_GCC_ubsan.v1
# variables: variables:
# BUILD_WITH_CODE_COVERAGE: 1 CCACHE_SIZE: 1G
# before_script: BUILD_TESTS_ONLY: 1
# - CI/install_debian_deps.sh gcc openmw-deps openmw-deps-dynamic openmw-coverage CMAKE_BUILD_TYPE: Debug
# coverage: /^\s*lines:\s*\d+.\d+\%/ CMAKE_CXX_FLAGS_DEBUG: -g -O0 -fsanitize=undefined
# artifacts: UBSAN_OPTIONS: print_stacktrace=1:halt_on_error=1
# paths: [] artifacts:
# name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA} paths: []
# when: always name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}
# reports: when: always
# coverage_report: reports:
# coverage_format: cobertura junit: build/tests.xml
# path: coverage.xml
# junit: build/tests.xml
#Ubuntu_Static_Deps: .Ubuntu_GCC_tests_tsan:
# extends: Ubuntu_Clang extends: Ubuntu_GCC
# rules: cache:
# - if: $CI_PIPELINE_SOURCE == "push" key: Ubuntu_GCC_tsan.v1
# changes: variables:
# - "**/CMakeLists.txt" CCACHE_SIZE: 1G
# - "cmake/**/*" BUILD_TESTS_ONLY: 1
# - "CI/**/*" CMAKE_BUILD_TYPE: Debug
# - ".gitlab-ci.yml" CMAKE_CXX_FLAGS_DEBUG: -g -O2 -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=thread -fPIE
# cache: CMAKE_EXE_LINKER_FLAGS: -pthread -pie -fsanitize=thread
# key: Ubuntu_Static_Deps.V1 TSAN_OPTIONS: second_deadlock_stack=1:halt_on_error=1
# paths: artifacts:
# - apt-cache/ paths: []
# - ccache/ name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}
# - build/extern/fetched/ when: always
# before_script: reports:
# - CI/install_debian_deps.sh clang openmw-deps openmw-deps-static junit: build/tests.xml
# variables:
# CI_OPENMW_USE_STATIC_DEPS: 1
# CC: clang
# CXX: clang++
# CXXFLAGS: -O0
# timeout: 3h
#Ubuntu_Static_Deps_tests: .Ubuntu_GCC_tests_coverage:
# extends: Ubuntu_Static_Deps extends: Ubuntu_GCC_tests_Debug
# cache: cache:
# key: Ubuntu_Static_Deps_tests.V1 key: Ubuntu_GCC_tests_coverage.v1
# variables: variables:
# CCACHE_SIZE: 1G BUILD_WITH_CODE_COVERAGE: 1
# BUILD_TESTS_ONLY: 1 before_script:
# CC: clang - CI/install_debian_deps.sh gcc openmw-deps openmw-deps-dynamic openmw-coverage
# CXX: clang++ coverage: /^\s*lines:\s*\d+.\d+\%/
# CXXFLAGS: -O0 artifacts:
# artifacts: paths: []
# paths: [] name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}
# name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA} when: always
# when: always reports:
# reports: coverage_report:
# junit: build/tests.xml coverage_format: cobertura
path: coverage.xml
junit: build/tests.xml
.Ubuntu_Static_Deps:
extends: Ubuntu_Clang
rules:
- if: $CI_PIPELINE_SOURCE == "push"
changes:
- "**/CMakeLists.txt"
- "cmake/**/*"
- "CI/**/*"
- ".gitlab-ci.yml"
cache:
key: Ubuntu_Static_Deps.V1
paths:
- apt-cache/
- ccache/
- build/extern/fetched/
before_script:
- CI/install_debian_deps.sh clang openmw-deps openmw-deps-static
variables:
CI_OPENMW_USE_STATIC_DEPS: 1
CC: clang
CXX: clang++
CXXFLAGS: -O0
timeout: 3h
.Ubuntu_Static_Deps_tests:
extends: Ubuntu_Static_Deps
cache:
key: Ubuntu_Static_Deps_tests.V1
variables:
CCACHE_SIZE: 1G
BUILD_TESTS_ONLY: 1
CC: clang
CXX: clang++
CXXFLAGS: -O0
artifacts:
paths: []
name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}
when: always
reports:
junit: build/tests.xml
Ubuntu_Clang: Ubuntu_Clang:
extends: .Ubuntu extends: .Ubuntu
@ -275,19 +277,19 @@ Ubuntu_Clang:
# When CCache doesn't exist (e.g. first build on a fork), build takes more than 1h, which is the default for forks. # When CCache doesn't exist (e.g. first build on a fork), build takes more than 1h, which is the default for forks.
timeout: 2h timeout: 2h
#Ubuntu_Clang_tests: .Ubuntu_Clang_tests:
# extends: Ubuntu_Clang extends: Ubuntu_Clang
# cache: cache:
# key: Ubuntu_Clang_tests.v3 key: Ubuntu_Clang_tests.v3
# variables: variables:
# CCACHE_SIZE: 1G CCACHE_SIZE: 1G
# BUILD_TESTS_ONLY: 1 BUILD_TESTS_ONLY: 1
# artifacts: artifacts:
# paths: [] paths: []
# name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA} name: ${CI_JOB_NAME}-${CI_COMMIT_REF_NAME}-${CI_COMMIT_SHA}
# when: always when: always
# reports: reports:
# junit: build/tests.xml junit: build/tests.xml
Ubuntu_Clang_tests_Debug: Ubuntu_Clang_tests_Debug:
extends: Ubuntu_Clang extends: Ubuntu_Clang
@ -312,7 +314,6 @@ Ubuntu_Clang_tests_Debug:
only: only:
variables: variables:
- $CI_PROJECT_ID == "7107382" - $CI_PROJECT_ID == "7107382"
interruptible: true
cache: cache:
paths: paths:
- ccache/ - ccache/
@ -352,151 +353,149 @@ variables: &tests-targets
targets: "openmw_test_suite,openmw_detournavigator_navmeshtilescache_benchmark" targets: "openmw_test_suite,openmw_detournavigator_navmeshtilescache_benchmark"
package: "Tests" package: "Tests"
#.Windows_Ninja_Base: .Windows_Ninja_Base:
# tags: tags:
# - windows - windows
# rules: rules:
# - if: $CI_PIPELINE_SOURCE == "push" - if: $CI_PIPELINE_SOURCE == "push"
# interruptible: true before_script:
# before_script: - Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
# - Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" - choco source add -n=openmw-proxy -s="https://repo.openmw.org/repository/Chocolatey/" --priority=1
# - choco source add -n=openmw-proxy -s="https://repo.openmw.org/repository/Chocolatey/" --priority=1 - choco source disable -n=chocolatey
# - choco source disable -n=chocolatey - choco install git --force --params "/GitAndUnixToolsOnPath" -y
# - choco install git --force --params "/GitAndUnixToolsOnPath" -y - choco install 7zip -y
# - choco install 7zip -y - choco install ccache -y
# - choco install ccache -y - choco install cmake.install --installargs 'ADD_CMAKE_TO_PATH=System' -y
# - choco install cmake.install --installargs 'ADD_CMAKE_TO_PATH=System' -y - choco install vswhere -y
# - choco install vswhere -y - choco install ninja -y
# - choco install ninja -y - choco install python -y
# - choco install python -y - refreshenv
# - refreshenv - |
# - | function Make-SafeFileName {
# function Make-SafeFileName { param(
# param( [Parameter(Mandatory=$true)]
# [Parameter(Mandatory=$true)] [String]
# [String] $FileName
# $FileName )
# ) [IO.Path]::GetInvalidFileNameChars() | ForEach-Object {
# [IO.Path]::GetInvalidFileNameChars() | ForEach-Object { $FileName = $FileName.Replace($_, '_')
# $FileName = $FileName.Replace($_, '_') }
# } return $FileName
# return $FileName }
# } stage: build
# stage: build script:
# script: - $time = (Get-Date -Format "HH:mm:ss")
# - $time = (Get-Date -Format "HH:mm:ss") - echo ${time}
# - echo ${time} - echo "started by ${GITLAB_USER_NAME}"
# - echo "started by ${GITLAB_USER_NAME}" - $env:CCACHE_BASEDIR = Get-Location
# - $env:CCACHE_BASEDIR = Get-Location - $env:CCACHE_DIR = "$(Get-Location)\ccache"
# - $env:CCACHE_DIR = "$(Get-Location)\ccache" - New-Item -Type Directory -Force -Path $env:CCACHE_DIR
# - New-Item -Type Directory -Force -Path $env:CCACHE_DIR - sh CI/before_script.msvc.sh -c $config -p Win64 -v 2019 -k -V -N -b -t -C $multiview
# - sh CI/before_script.msvc.sh -c $config -p Win64 -v 2019 -k -V -N -b -t -C $multiview - cd MSVC2019_64_Ninja
# - cd MSVC2019_64_Ninja - .\ActivateMSVC.ps1
# - .\ActivateMSVC.ps1 - cmake --build . --config $config --target ($targets.Split(','))
# - cmake --build . --config $config --target ($targets.Split(',')) - ccache --show-stats
# - ccache --show-stats - cd $config
# - cd $config - echo "CI_COMMIT_REF_NAME ${CI_COMMIT_REF_NAME}`nCI_JOB_ID ${CI_JOB_ID}`nCI_COMMIT_SHA ${CI_COMMIT_SHA}" | Out-File -Encoding UTF8 CI-ID.txt
# - echo "CI_COMMIT_REF_NAME ${CI_COMMIT_REF_NAME}`nCI_JOB_ID ${CI_JOB_ID}`nCI_COMMIT_SHA ${CI_COMMIT_SHA}" | Out-File -Encoding UTF8 CI-ID.txt - Get-ChildItem -Recurse *.ilk | Remove-Item
# - Get-ChildItem -Recurse *.ilk | Remove-Item - |
# - | if (Get-ChildItem -Recurse *.pdb) {
# if (Get-ChildItem -Recurse *.pdb) { 7z a -tzip "..\..\$(Make-SafeFileName("OpenMW_MSVC2019_64_${package}_${config}_${CI_COMMIT_REF_NAME}_${CI_JOB_ID}_symbols.zip"))" '*.pdb' CI-ID.txt
# 7z a -tzip "..\..\$(Make-SafeFileName("OpenMW_MSVC2019_64_${package}_${config}_${CI_COMMIT_REF_NAME}_${CI_JOB_ID}_symbols.zip"))" '*.pdb' CI-ID.txt Get-ChildItem -Recurse *.pdb | Remove-Item
# Get-ChildItem -Recurse *.pdb | Remove-Item }
# } - 7z a -tzip "..\..\$(Make-SafeFileName("OpenMW_MSVC2019_64_${package}_${config}_${CI_COMMIT_REF_NAME}.zip"))" '*'
# - 7z a -tzip "..\..\$(Make-SafeFileName("OpenMW_MSVC2019_64_${package}_${config}_${CI_COMMIT_REF_NAME}.zip"))" '*' - if ($executables) { foreach ($exe in $executables.Split(',')) { & .\$exe } }
# - if ($executables) { foreach ($exe in $executables.Split(',')) { & .\$exe } } after_script:
# after_script: - Copy-Item C:\ProgramData\chocolatey\logs\chocolatey.log
# - Copy-Item C:\ProgramData\chocolatey\logs\chocolatey.log cache:
# cache: key: ninja-v2
# key: ninja-v2 paths:
# paths: - ccache
# - ccache - deps
# - deps - MSVC2019_64_Ninja/deps/Qt
# - MSVC2019_64_Ninja/deps/Qt artifacts:
# artifacts: when: always
# when: always paths:
# paths: - "*.zip"
# - "*.zip" - "*.log"
# - "*.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 - 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
# - MSVC2019_64_Ninja/*/*/*/*/*/*/*.log - MSVC2019_64_Ninja/*/*/*/*/*/*/*/*.log
# - MSVC2019_64_Ninja/*/*/*/*/*/*/*/*.log # When CCache doesn't exist (e.g. first build on a fork), build takes more than 1h, which is the default for forks.
# # When CCache doesn't exist (e.g. first build on a fork), build takes more than 1h, which is the default for forks. timeout: 2h
# timeout: 2h
# .Windows_Ninja_Engine_Release:
#Windows_Ninja_Engine_Release: extends:
# extends: - .Windows_Ninja_Base
# - .Windows_Ninja_Base variables:
# variables: <<: *engine-targets
# <<: *engine-targets config: "Release"
# config: "Release"
# .Windows_Ninja_Engine_Release_MultiView:
#Windows_Ninja_Engine_Release_MultiView: extends:
# extends: - .Windows_Ninja_Base
# - .Windows_Ninja_Base variables:
# variables: <<: *engine-targets
# <<: *engine-targets multiview: "-M"
# multiview: "-M" config: "Release"
# config: "Release"
# .Windows_Ninja_Engine_Debug:
#Windows_Ninja_Engine_Debug: extends:
# extends: - .Windows_Ninja_Base
# - .Windows_Ninja_Base variables:
# variables: <<: *engine-targets
# <<: *engine-targets config: "Debug"
# config: "Debug"
# .Windows_Ninja_Engine_RelWithDebInfo:
#Windows_Ninja_Engine_RelWithDebInfo: extends:
# extends: - .Windows_Ninja_Base
# - .Windows_Ninja_Base variables:
# variables: <<: *engine-targets
# <<: *engine-targets config: "RelWithDebInfo"
# config: "RelWithDebInfo"
# .Windows_Ninja_CS_Release:
#Windows_Ninja_CS_Release: extends:
# extends: - .Windows_Ninja_Base
# - .Windows_Ninja_Base variables:
# variables: <<: *cs-targets
# <<: *cs-targets config: "Release"
# config: "Release"
# .Windows_Ninja_CS_Debug:
#Windows_Ninja_CS_Debug: extends:
# extends: - .Windows_Ninja_Base
# - .Windows_Ninja_Base variables:
# variables: <<: *cs-targets
# <<: *cs-targets config: "Debug"
# config: "Debug"
# .Windows_Ninja_CS_RelWithDebInfo:
#Windows_Ninja_CS_RelWithDebInfo: extends:
# extends: - .Windows_Ninja_Base
# - .Windows_Ninja_Base variables:
# variables: <<: *cs-targets
# <<: *cs-targets config: "RelWithDebInfo"
# config: "RelWithDebInfo"
# .Windows_Ninja_Tests_RelWithDebInfo:
#Windows_Ninja_Tests_RelWithDebInfo: extends: .Windows_Ninja_Base
# extends: .Windows_Ninja_Base stage: build
# stage: build variables:
# variables: <<: *tests-targets
# <<: *tests-targets config: "RelWithDebInfo"
# config: "RelWithDebInfo" # Gitlab can't successfully execute following binaries due to unknown reason
# # Gitlab can't successfully execute following binaries due to unknown reason # executables: "openmw_test_suite.exe,openmw_detournavigator_navmeshtilescache_benchmark.exe"
# # executables: "openmw_test_suite.exe,openmw_detournavigator_navmeshtilescache_benchmark.exe" artifacts:
# artifacts: paths: []
# paths: [] expire_in: 1 minute
# expire_in: 1 minute
.Windows_MSBuild_Base: .Windows_MSBuild_Base:
tags: tags:
- windows - windows
rules: rules:
- if: $CI_PIPELINE_SOURCE == "push" - if: $CI_PIPELINE_SOURCE == "push"
interruptible: true
before_script: before_script:
- Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1" - Import-Module "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
- choco source add -n=openmw-proxy -s="https://repo.openmw.org/repository/Chocolatey/" --priority=1 - choco source add -n=openmw-proxy -s="https://repo.openmw.org/repository/Chocolatey/" --priority=1
@ -566,23 +565,23 @@ variables: &tests-targets
# When CCache doesn't exist (e.g. first build on a fork), build takes more than 1h, which is the default for forks. # When CCache doesn't exist (e.g. first build on a fork), build takes more than 1h, which is the default for forks.
timeout: 2h timeout: 2h
#Windows_MSBuild_Engine_Release: .Windows_MSBuild_Engine_Release:
# extends: extends:
# - .Windows_MSBuild_Base - .Windows_MSBuild_Base
# variables: variables:
# <<: *engine-targets <<: *engine-targets
# config: "Release" config: "Release"
# rules: rules:
# # run this for both pushes and schedules so 'latest successful pipeline for branch' always includes it # run this for both pushes and schedules so 'latest successful pipeline for branch' always includes it
# - if: $CI_PIPELINE_SOURCE == "push" - if: $CI_PIPELINE_SOURCE == "push"
# - if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_PIPELINE_SOURCE == "schedule"
#
#Windows_MSBuild_Engine_Debug: Windows_MSBuild_Engine_Debug:
# extends: extends:
# - .Windows_MSBuild_Base - .Windows_MSBuild_Base
# variables: variables:
# <<: *engine-targets <<: *engine-targets
# config: "Debug" config: "Debug"
Windows_MSBuild_Engine_RelWithDebInfo: Windows_MSBuild_Engine_RelWithDebInfo:
extends: extends:
@ -591,42 +590,42 @@ Windows_MSBuild_Engine_RelWithDebInfo:
<<: *engine-targets <<: *engine-targets
config: "RelWithDebInfo" config: "RelWithDebInfo"
#Windows_MSBuild_CS_Release: .Windows_MSBuild_CS_Release:
# extends: extends:
# - .Windows_MSBuild_Base - .Windows_MSBuild_Base
# variables: variables:
# <<: *cs-targets <<: *cs-targets
# config: "Release" config: "Release"
# rules: rules:
# # run this for both pushes and schedules so 'latest successful pipeline for branch' always includes it # run this for both pushes and schedules so 'latest successful pipeline for branch' always includes it
# - if: $CI_PIPELINE_SOURCE == "push" - if: $CI_PIPELINE_SOURCE == "push"
# - if: $CI_PIPELINE_SOURCE == "schedule" - if: $CI_PIPELINE_SOURCE == "schedule"
#
#Windows_MSBuild_CS_Debug: .Windows_MSBuild_CS_Debug:
# extends: extends:
# - .Windows_MSBuild_Base - .Windows_MSBuild_Base
# variables: variables:
# <<: *cs-targets <<: *cs-targets
# config: "Debug" config: "Debug"
#
#Windows_MSBuild_CS_RelWithDebInfo: .Windows_MSBuild_CS_RelWithDebInfo:
# extends: extends:
# - .Windows_MSBuild_Base - .Windows_MSBuild_Base
# variables: variables:
# <<: *cs-targets <<: *cs-targets
# config: "RelWithDebInfo" config: "RelWithDebInfo"
#
#Windows_MSBuild_Tests_RelWithDebInfo: .Windows_MSBuild_Tests_RelWithDebInfo:
# extends: .Windows_MSBuild_Base extends: .Windows_MSBuild_Base
# stage: build stage: build
# variables: variables:
# <<: *tests-targets <<: *tests-targets
# config: "RelWithDebInfo" config: "RelWithDebInfo"
# # Gitlab can't successfully execute following binaries due to unknown reason # Gitlab can't successfully execute following binaries due to unknown reason
# # executables: "openmw_test_suite.exe,openmw_detournavigator_navmeshtilescache_benchmark.exe" # executables: "openmw_test_suite.exe,openmw_detournavigator_navmeshtilescache_benchmark.exe"
# artifacts: artifacts:
# paths: [] paths: []
# expire_in: 1 minute expire_in: 1 minute
Ubuntu_AndroidNDK_arm64-v8a: Ubuntu_AndroidNDK_arm64-v8a:
tags: tags:
@ -634,7 +633,6 @@ Ubuntu_AndroidNDK_arm64-v8a:
image: psi29a/android-ndk:focal-ndk22 image: psi29a/android-ndk:focal-ndk22
rules: rules:
- if: $CI_PIPELINE_SOURCE == "push" - if: $CI_PIPELINE_SOURCE == "push"
interruptible: true
variables: variables:
CCACHE_SIZE: 3G CCACHE_SIZE: 3G
cache: cache:
@ -672,18 +670,18 @@ Ubuntu_AndroidNDK_arm64-v8a:
# When CCache doesn't exist (e.g. first build on a fork), build takes more than 1h, which is the default for forks. # When CCache doesn't exist (e.g. first build on a fork), build takes more than 1h, which is the default for forks.
timeout: 1h30m timeout: 1h30m
#FindMissingMergeRequests: .FindMissingMergeRequests:
# image: python:latest image: python:latest
# stage: build stage: build
# rules: rules:
# - if: '$CI_PIPELINE_SOURCE == "schedule"' - if: '$CI_PIPELINE_SOURCE == "schedule"'
# variables: variables:
# PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip" PIP_CACHE_DIR: "$CI_PROJECT_DIR/.cache/pip"
# cache: cache:
# key: FindMissingMergeRequests.v1 key: FindMissingMergeRequests.v1
# paths: paths:
# - .cache/pip - .cache/pip
# before_script: before_script:
# - pip3 install --user requests click discord_webhook - pip3 install --user requests click discord_webhook
# script: script:
# - scripts/find_missing_merge_requests.py --project_id=$CI_PROJECT_ID --ignored_mrs_path=$CI_PROJECT_DIR/.resubmitted_merge_requests.txt - scripts/find_missing_merge_requests.py --project_id=$CI_PROJECT_ID --ignored_mrs_path=$CI_PROJECT_DIR/.resubmitted_merge_requests.txt