Commit 701c2841 authored by 神楽坂玲奈's avatar 神楽坂玲奈

ci

parent a55e6b7c
Pipeline #38882 canceled with stages
in 2 minutes and 30 seconds
image: unityci/editor:6000.0.24f1-base-3
before_script: 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
...@@ -8,6 +6,7 @@ after_script: ...@@ -8,6 +6,7 @@ after_script:
- echo "After script section" - echo "After script section"
- echo "For example you might do some cleanup here" - echo "For example you might do some cleanup here"
# 为了简便先设置 scriptingBackend 为 Mono。原本是 il2cpp。
prepare: prepare:
stage: .pre stage: .pre
image: image:
...@@ -17,11 +16,28 @@ prepare: ...@@ -17,11 +16,28 @@ 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
- cat ProjectSettings/ProjectSettings.asset
build: StandaloneLinux64:
image: unityci/editor:6000.0.24f1-base-3
stage: build stage: build
tags: tags:
- linux - linux
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 /dev/stdout
- ls Builds/StandaloneLinux64 - ls Builds/StandaloneLinux64
StandaloneWindows64:
image: unityci/editor:6000.0.24f1-base-3
stage: build
tags:
- linux
script:
- unity-editor -quit -nographics -projectPath . -buildTarget StandaloneWindows64 -buildWindows64Player Builds/StandaloneWindows64/MDPro3.exe -logFile /dev/stdout
- ls Builds/StandaloneWindows64
StandaloneOSX:
image: unityci/editor:6000.0.24f1-base-3
stage: build
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
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