Skip to content

Commit

Permalink
Rewrite of project-pack
Browse files Browse the repository at this point in the history
  • Loading branch information
michalChrobot committed Dec 18, 2024
1 parent 885ee9f commit 710054e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
11 changes: 4 additions & 7 deletions .yamato/project-pack.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
{% metadata_file .yamato/project.metafile %}
---

# Ubuntu is used for this job because of better performance for simple operations
{% for project in projects -%}
{% for platform in test_platforms -%}
{% if platform.name == "ubuntu" -%}
pack_{{ project.name }}:
name: Pack {{ project.name }}
agent:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor }}
type: {{ test_platforms[0].type }}
image: {{ test_platforms[0].image }}
flavor: {{ test_platforms[0].flavor }}
commands:
- npm install upm-ci-utils@stable -g --registry https://artifactory.prd.cds.internal.unity3d.com/artifactory/api/npm/upm-npm
- upm-ci project pack --project-path {{ project.path }}
artifacts:
packages:
paths:
- "upm-ci~/packages/**/*"
{% endif -%}
{% endfor -%}
{% endfor -%}
20 changes: 10 additions & 10 deletions .yamato/project.metafile
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Platforms that will be tested. The first entry in this array will also
# be used for validation, code coverage etc (windows) so it's important to be careful when changing order of test platforms!
# Platforms that will be tested. The first entry (ubuntu) in this array will also
# be used for validation, code coverage etc (simple operations are performed faster on it) so it's important to be careful when changing order of test platforms!
test_platforms:
- name: ubuntu
type: Unity::VM
image: package-ci/ubuntu-22.04:v4
flavor: b1.large
pathsep: /
standalone: StandaloneLinux64
editorpath: .Editor/Unity
utr: ./utr
- name: win
type: Unity::VM
image: package-ci/win10:v4
Expand All @@ -17,14 +25,6 @@ test_platforms:
flavor: b1.large
editorpath: .Editor/Unity.app/Contents/MacOS/Unity
utr: ./utr
- name: ubuntu
type: Unity::VM
image: package-ci/ubuntu-22.04:v4
flavor: b1.large
pathsep: /
standalone: StandaloneLinux64
editorpath: .Editor/Unity
utr: ./utr

# Editors to be used for testing.
# Since NGOv2 official support started from U6 it means that only those editors should be used for testing
Expand Down

0 comments on commit 710054e

Please sign in to comment.