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