Commit 410b0184 authored by nanahira's avatar nanahira

Update .gitlab-ci.yml

parent 51337c58
Pipeline #38895 failed with stages
in 7 minutes and 27 seconds
......@@ -2,13 +2,16 @@ before_script:
- mkdir -p ~/.local/share/unity3d/Unity
- ln -sf $UNITY_LICENSE ~/.local/share/unity3d/Unity/Unity_lic.ulf
after_script:
- echo "After script section"
- echo "For example you might do some cleanup here"
stages:
- prepare
- build
variables:
GIT_DEPTH: '1'
# 为了简便先设置 scriptingBackend 为 Mono。原本是 il2cpp。
prepare:
stage: .pre
stage: prepare
image:
name: mikefarah/yq
entrypoint: [""]
......@@ -16,28 +19,33 @@ prepare:
- linux
script:
- yq eval '.PlayerSettings.scriptingBackend.Standalone = 0' -i ProjectSettings/ProjectSettings.asset
artifacts:
paths:
- ProjectSettings/ProjectSettings.asset
StandaloneLinux64:
.unity:
stage: build
image: unityci/editor:6000.0.24f1-base-3
tags:
- linux
artifacts:
paths:
- test.log
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
- unity-editor -quit -nographics -projectPath . -buildTarget StandaloneLinux64 -buildLinux64Player Builds/StandaloneLinux64/MDPro3 -logFile test.log || true
- ls Builds/StandaloneLinux64
StandaloneWindows64:
stage: build
extends: .unity
image: unityci/editor:6000.0.24f1-windows-mono-3
tags:
- linux
script:
- unity-editor -quit -nographics -projectPath . -buildTarget StandaloneWindows64 -buildWindows64Player Builds/StandaloneWindows64/MDPro3.exe -logFile /dev/stdout
- unity-editor -quit -nographics -projectPath . -buildTarget StandaloneWindows64 -buildWindows64Player Builds/StandaloneWindows64/MDPro3.exe -logFile test.log || true
- ls Builds/StandaloneWindows64
StandaloneOSX:
stage: build
extends: .unity
image: unityci/editor:6000.0.24f1-mac-mono-3
tags:
- linux
script:
- unity-editor -quit -nographics -projectPath . -buildTarget StandaloneLinux64 -buildOSXUniversalPlayer Builds/StandaloneOSX/MDPro3.app -logFile /dev/stdout
- ls Builds/StandaloneOSX
\ No newline at end of file
- unity-editor -quit -nographics -projectPath . -buildTarget StandaloneLinux64 -buildOSXUniversalPlayer Builds/StandaloneOSX/MDPro3.app -logFile test.log || true
- ls Builds/StandaloneOSX
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