您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
40 行
2.1 KiB
40 行
2.1 KiB
{% metadata_file .yamato/test_versions.metafile %}
|
|
---
|
|
{% for editor in test_editors %}
|
|
test_linux_standalone_{{ editor.version }}:
|
|
name: Test Linux Standalone {{ editor.version }}
|
|
agent:
|
|
type: Unity::VM
|
|
image: package-ci/ubuntu:stable
|
|
flavor: b1.large
|
|
variables:
|
|
UNITY_VERSION: {{ editor.version }}
|
|
commands:
|
|
- python3 -m pip install pyyaml --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple
|
|
- python3 -m pip install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade
|
|
- unity-downloader-cli -u {{ editor.version }} -c editor --wait --fast
|
|
- python3 -u -m ml-agents.tests.yamato.standalone_build_tests --build-target=linux
|
|
- python3 -u -m ml-agents.tests.yamato.standalone_build_tests --build-target=linux --scene=Assets/ML-Agents/Examples/Basic/Scenes/Basic.unity
|
|
- python3 -u -m ml-agents.tests.yamato.standalone_build_tests --build-target=linux --scene=Assets/ML-Agents/Examples/Bouncer/Scenes/Bouncer.unity
|
|
- python3 -u -m ml-agents.tests.yamato.standalone_build_tests --build-target=linux --scene=Assets/ML-Agents/Examples/WallJump/Scenes/WallJump.unity
|
|
- python3 -u -m ml-agents.tests.yamato.standalone_build_tests --build-target=linux --scene=Assets/ML-Agents/TestScenes/TestCompressedGrid/TestGridCompressed.unity
|
|
- python3 -u -m ml-agents.tests.yamato.standalone_build_tests --build-target=linux --scene=Assets/ML-Agents/TestScenes/TestCompressedTexture/TestTextureCompressed.unity
|
|
triggers:
|
|
cancel_old_ci: true
|
|
expression: |
|
|
(pull_request.target eq "main" OR
|
|
pull_request.target match "release.+") AND
|
|
NOT pull_request.draft AND
|
|
(pull_request.changes.any match "com.unity.ml-agents/**" OR
|
|
pull_request.changes.any match "com.unity.ml-agents.extensions/**" OR
|
|
pull_request.changes.any match ".yamato/standalone-build-test.yml") AND
|
|
NOT pull_request.changes.all match "**/*.md"
|
|
artifacts:
|
|
logs:
|
|
paths:
|
|
- "artifacts/standalone_build.txt"
|
|
standalonebuild:
|
|
paths:
|
|
- "artifacts/testPlayer*/**"
|
|
- "artifacts/**/UnityPlayer.so"
|
|
{% endfor %}
|