Commit edbb87e5 authored by nanahira's avatar nanahira

Update .gitlab-ci.yml

parent 6465a1d9
Pipeline #38921 failed with stages
in 17 seconds
before_script:
# license
- mkdir -p ~/.local/share/unity3d/Unity
- ln -sf $UNITY_LICENSE ~/.local/share/unity3d/Unity/Unity_lic.ulf
# il2cpp -> mono
- 'sed -Ei "/^ scriptingBackend:/,/^ \w/ s/( Standalone: ).*$/\10/" ProjectSettings/ProjectSettings.asset'
# accelerator
- 'sed -Ei "s/( m_CacheServerMode: ).*$/\11/" ProjectSettings/EditorSettings.asset'
- 'sed -Ei "s/( m_CacheServerEndpoint: ).*$/\1unity-accelerator.myacg.cc/" ProjectSettings/EditorSettings.asset'
variables:
GIT_DEPTH: '1'
stages:
- prepare
- build
dll:
stage: prepare
tags:
- linux
dependencies: []
script: |
download_thing() {
wget -y -O Assets/Plugins/$3/$2 https://cdn02.moecube.com:444/$1/$2
}
download_thing libocgcore-koishi/x64 ocgcore.dll Windows
download_thing libocgcore-koishi/x64 sqlite3.dll Windows
download_thing koishipro/server/windows ygoserver.dll Windows
download_thing libocgcore-koishi/x64 libocgcore.so Linux
download_thing libocgcore-koishi/x64 libsqlite3.so Linux
download_thing koishipro/server/linux-x64 libygoserver.so Linux
download_thing libocgcore-koishi/macos libocgcore.dylib macOS
download_thing libocgcore-koishi/macos libocgcore.dylib macOS
download_thing koishipro/server/macos libygoserver.dylib macOS
artifacts:
paths:
- Assets/Plugins/Windows
- Assets/Plugins/Linux
- Assets/Plugins/macOS
.unity:
stage: build
tags:
- linux
dependencies:
- dll
variables:
BUILD_TARGET: StandaloneLinux64
EXEC_NAME: MDPro3
script:
# license
- mkdir -p ~/.local/share/unity3d/Unity
- ln -sf $UNITY_LICENSE ~/.local/share/unity3d/Unity/Unity_lic.ulf
# il2cpp -> mono
- 'sed -Ei "/^ scriptingBackend:/,/^ \w/ s/( Standalone: ).*$/\10/" ProjectSettings/ProjectSettings.asset'
# accelerator
- 'sed -Ei "s/( m_CacheServerMode: ).*$/\11/" ProjectSettings/EditorSettings.asset'
- 'sed -Ei "s/( m_CacheServerEndpoint: ).*$/\1unity-accelerator.myacg.cc/" ProjectSettings/EditorSettings.asset'
- unity-editor -quit -nographics -projectPath . -buildTarget $BUILD_TARGET -buildLinux64Player Builds/$BUILD_TARGET/$EXEC_NAME -logFile /dev/stdout
- rm -rf Builds/$BUILD_TARGET/MDPro3_BurstDebugInformation_DoNotShip
artifacts:
paths:
- Builds
StandaloneLinux64:
extends: .unity
image: unityci/editor:6000.0.24f1-base-3
script:
- unity-editor -quit -nographics -projectPath . -buildTarget StandaloneLinux64 -buildLinux64Player Builds/StandaloneLinux64/MDPro3 -logFile /dev/stdout
- rm -rf Builds/StandaloneLinux64/MDPro3_BurstDebugInformation_DoNotShip
artifacts:
paths:
- Builds/StandaloneLinux64
# exclude:
# - Builds/StandaloneLinux64/MDPro3_BurstDebugInformation_DoNotShip
variables:
BUILD_TARGET: StandaloneLinux64
EXEC_NAME: MDPro3
StandaloneWindows64:
extends: .unity
image: unityci/editor:6000.0.24f1-windows-mono-3
script:
- unity-editor -quit -nographics -projectPath . -buildTarget StandaloneWindows64 -buildWindows64Player Builds/StandaloneWindows64/MDPro3.exe -logFile /dev/stdout
- rm -rf Builds/StandaloneWindows64/MDPro3_BurstDebugInformation_DoNotShip
artifacts:
paths:
- Builds/StandaloneWindows64
# exclude:
# - Builds/StandaloneWindows64/MDPro3_BurstDebugInformation_DoNotShip
variables:
BUILD_TARGET: StandaloneWindows64
EXEC_NAME: MDPro3.exe
StandaloneOSX:
extends: .unity
image: unityci/editor:6000.0.24f1-mac-mono-3
script:
- unity-editor -quit -nographics -projectPath . -buildTarget StandaloneLinux64 -buildOSXUniversalPlayer Builds/StandaloneOSX/MDPro3.app -logFile /dev/stdout
- rm -rf Builds/StandaloneOSX/MDPro3_BurstDebugInformation_DoNotShip
artifacts:
paths:
- Builds/StandaloneOSX
# exclude:
# - Builds/StandaloneOSX/MDPro3_BurstDebugInformation_DoNotShip
variables:
BUILD_TARGET: StandaloneOSX
EXEC_NAME: MDPro3.app
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment