|
1 | 1 | description: >
|
2 |
| - Drop-in solution to automatically run tests and build your Unity project. |
| 2 | + Drop-in solution to automatically run tests and build your Unity project using a Personal license. |
3 | 3 |
|
4 | 4 | usage:
|
5 | 5 | version: 2.1
|
6 | 6 |
|
7 | 7 | orbs:
|
8 |
| - unity: game-ci/unity@1.0.0 |
| 8 | + unity: game-ci/unity@0.2.0 |
9 | 9 |
|
10 | 10 | workflows:
|
11 |
| - test-build: |
| 11 | + test-build-with-executors: |
12 | 12 | jobs:
|
| 13 | + - checkout |
13 | 14 | - unity/test:
|
| 15 | + name: "test-linux" |
| 16 | + step-name: "Run tests on Linux" |
14 | 17 | unity-license-var-name: "UNITY_ENCODED_LICENSE"
|
15 |
| - test-platform: "playmode" |
16 | 18 | executor:
|
17 |
| - name: "unity/ubuntu-2021" |
18 |
| - target-platform: "linux-il2cpp" |
| 19 | + name: "unity/ubuntu" |
| 20 | + target_platform: "linux-il2cpp" |
| 21 | + editor_version: "2021.3.1f1" |
| 22 | + resource_class: "medium" |
| 23 | + project-path: "Unity2D-Demo-Game-CI-CD/src" |
| 24 | + test-platform: "playmode" |
19 | 25 | context: unity-orb # context with the UNITY_ENCODED_LICENSE variable
|
| 26 | + - unity/test: |
| 27 | + name: "test-windows" |
| 28 | + step-name: "Run tests on Windows" |
| 29 | + unity-license-var-name: "UNITY_ENCODED_LICENSE" |
| 30 | + unity-username-var-name: "UNITY_USERNAME" |
| 31 | + unity-password-var-name: "UNITY_PASSWORD" |
| 32 | + executor: |
| 33 | + name: "unity/windows-2019" |
| 34 | + size: "large" |
| 35 | + editor_version: "2021.3.2f1" |
| 36 | + target_platform: "windows-il2cpp" |
| 37 | + project-path: "Unity2D-Demo-Game-CI-CD/src" |
| 38 | + test-platform: "playmode" |
| 39 | + context: unity-orb # context with the UNITY_USERNAME, UNITY_PASSWORD and UNITY_ENCODED_LICENSE variable |
20 | 40 | - unity/build:
|
21 |
| - name: "build-linux64" |
| 41 | + name: "build-linux64-il2cpp" |
| 42 | + step-name: "Build StandaloneLinux64 using IL2CPP" |
22 | 43 | unity-license-var-name: "UNITY_ENCODED_LICENSE"
|
| 44 | + executor: |
| 45 | + name: "unity/ubuntu" |
| 46 | + target_platform: "linux-il2cpp" |
| 47 | + editor_version: "2021.3.1f1" |
| 48 | + resource_class: "large" |
| 49 | + project-path: "Unity2D-Demo-Game-CI-CD/src" |
23 | 50 | build-target: StandaloneLinux64
|
24 | 51 | compress: true
|
| 52 | + requires: |
| 53 | + - test-linux |
| 54 | + context: unity-orb |
| 55 | + - unity/build: |
| 56 | + name: "build-windows64-il2cpp" |
| 57 | + step-name: "Build StandaloneWindows64 using IL2CPP" |
| 58 | + unity-license-var-name: "UNITY_ENCODED_LICENSE" |
| 59 | + unity-username-var-name: "UNITY_USERNAME" |
| 60 | + unity-password-var-name: "UNITY_PASSWORD" |
25 | 61 | executor:
|
26 |
| - name: "unity/ubuntu-2021" |
27 |
| - target-platform: "linux-il2cpp" |
| 62 | + name: "unity/windows-2019" |
| 63 | + size: "large" |
| 64 | + editor_version: "2021.3.2f1" |
| 65 | + target_platform: "windows-il2cpp" |
| 66 | + project-path: "Unity2D-Demo-Game-CI-CD/src" |
| 67 | + build-target: StandaloneWindows64 |
| 68 | + compress: true |
28 | 69 | requires:
|
29 |
| - - test |
30 |
| - context: unity-orb # context with the UNITY_ENCODED_LICENSE variable |
| 70 | + - test-windows |
| 71 | + context: unity-orb |
| 72 | + - unity/build: |
| 73 | + name: "build-windows64-il2cpp-cuda" |
| 74 | + step-name: "Build StandaloneWindows64 using IL2CPP and CUDA executor" |
| 75 | + unity-license-var-name: "UNITY_ENCODED_LICENSE" |
| 76 | + unity-username-var-name: "UNITY_USERNAME" |
| 77 | + unity-password-var-name: "UNITY_PASSWORD" |
| 78 | + executor: |
| 79 | + name: "unity/windows-2019-cuda" |
| 80 | + size: "medium" |
| 81 | + editor_version: "2021.3.2f1" |
| 82 | + target_platform: "windows-il2cpp" |
| 83 | + project-path: "Unity2D-Demo-Game-CI-CD/src" |
| 84 | + build-target: StandaloneWindows64 |
| 85 | + compress: true |
| 86 | + requires: |
| 87 | + - test-windows |
| 88 | + context: unity-orb |
| 89 | + - unity/build: |
| 90 | + name: "build-linux64-mono" |
| 91 | + step-name: "Build StandaloneLinux64 using Mono" |
| 92 | + unity-license-var-name: "UNITY_ENCODED_LICENSE" |
| 93 | + executor: |
| 94 | + name: "unity/ubuntu" |
| 95 | + target_platform: "base" |
| 96 | + editor_version: "2021.3.1f1" |
| 97 | + resource_class: "large" |
| 98 | + project-path: "Unity2D-Demo-Game-CI-CD/src" |
| 99 | + build-target: StandaloneLinux64 |
| 100 | + compress: true |
| 101 | + requires: |
| 102 | + - test-linux |
| 103 | + context: unity-orb |
31 | 104 | - unity/build:
|
| 105 | + name: "build-windows64-mono" |
| 106 | + step-name: "Build StandaloneWindows64 using Mono" |
| 107 | + unity-license-var-name: "UNITY_ENCODED_LICENSE" |
| 108 | + executor: |
| 109 | + name: "unity/ubuntu" |
| 110 | + target_platform: "windows-mono" |
| 111 | + editor_version: "2021.3.2f1" |
| 112 | + resource_class: "large" |
| 113 | + project-path: "Unity2D-Demo-Game-CI-CD/src" |
| 114 | + build-target: "StandaloneWindows64" |
| 115 | + requires: |
| 116 | + - test-linux |
| 117 | + context: unity-orb |
| 118 | + - unity/build: |
| 119 | + name: "build-osx-mono" |
| 120 | + step-name: "Build StandaloneOSX using Mono" |
| 121 | + unity-license-var-name: "UNITY_ENCODED_LICENSE" |
| 122 | + executor: |
| 123 | + name: "unity/ubuntu" |
| 124 | + target_platform: "mac-mono" |
| 125 | + editor_version: "2021.3.2f1" |
| 126 | + resource_class: "large" |
| 127 | + project-path: "Unity2D-Demo-Game-CI-CD/src" |
| 128 | + build-target: "StandaloneOSX" |
| 129 | + requires: |
| 130 | + - test-linux |
| 131 | + context: unity-orb |
| 132 | + - build: |
32 | 133 | name: "build-webgl"
|
| 134 | + step-name: "Build WebGL" |
33 | 135 | unity-license-var-name: "UNITY_ENCODED_LICENSE"
|
| 136 | + executor: |
| 137 | + name: "unity/ubuntu" |
| 138 | + target_platform: "webgl" |
| 139 | + editor_version: "2021.3.1f1" |
| 140 | + resource_class: "large" |
| 141 | + project-path: "Unity2D-Demo-Game-CI-CD/src" |
34 | 142 | build-target: "WebGL"
|
35 | 143 | compress: false
|
| 144 | + requires: |
| 145 | + - test-linux |
| 146 | + context: unity-orb |
| 147 | + - build: |
| 148 | + name: "build-android" |
| 149 | + step-name: "Build Android" |
| 150 | + unity-license-var-name: "UNITY_ENCODED_LICENSE" |
36 | 151 | executor:
|
37 |
| - name: "unity/ubuntu-2021" |
38 |
| - target-platform: "webgl" |
| 152 | + name: "unity/ubuntu" |
| 153 | + target_platform: "android" |
| 154 | + editor_version: "2021.3.2f1" |
| 155 | + resource_class: "large" |
| 156 | + project-path: "Unity2D-Demo-Game-CI-CD/src" |
| 157 | + build-target: "Android" |
39 | 158 | requires:
|
40 |
| - - test |
41 |
| - context: unity-orb # context with the UNITY_ENCODED_LICENSE variable |
| 159 | + - test-linux |
| 160 | + context: unity-orb |
| 161 | + - build: |
| 162 | + name: "build-ios" |
| 163 | + step-name: "Build iOS" |
| 164 | + unity-license-var-name: "UNITY_ENCODED_LICENSE" |
| 165 | + executor: |
| 166 | + name: "unity/ubuntu" |
| 167 | + target_platform: "ios" |
| 168 | + editor_version: "2021.3.2f1" |
| 169 | + resource_class: "large" |
| 170 | + project-path: "Unity2D-Demo-Game-CI-CD/src" |
| 171 | + build-target: "iOS" |
| 172 | + requires: |
| 173 | + - test-linux |
| 174 | + context: unity-orb |
| 175 | + test-build-with-windows-runner: |
| 176 | + jobs: |
| 177 | + - checkout |
| 178 | + - unity/test: |
| 179 | + name: "test-windows" |
| 180 | + step-name: "Run tests on Windows" |
| 181 | + unity-license-var-name: "UNITY_ENCODED_LICENSE" |
| 182 | + unity-username-var-name: "UNITY_USERNAME" |
| 183 | + unity-password-var-name: "UNITY_PASSWORD" |
| 184 | + executor: |
| 185 | + name: "unity/windows-runner" |
| 186 | + resource_class: "namespace/resource-class-label" # can be found at: https://app.circleci.com/runners/github/<< your namespace >>/inventory |
| 187 | + working_directory: "C:\\Users\\circleci\\AppData\\Local\\Temp\\Workdir" |
| 188 | + editor_version: "2021.3.2f1" |
| 189 | + target_platform: "windows-il2cpp" |
| 190 | + project-path: "Unity2D-Demo-Game-CI-CD/src" |
| 191 | + test-platform: "playmode" |
| 192 | + context: unity-orb # context with the UNITY_USERNAME, UNITY_PASSWORD and UNITY_ENCODED_LICENSE variable |
42 | 193 | - unity/build:
|
43 |
| - name: "build-windows64" |
| 194 | + name: "build-windows64-il2cpp" |
| 195 | + step-name: "Build StandaloneWindows64 using IL2CPP" |
44 | 196 | unity-license-var-name: "UNITY_ENCODED_LICENSE"
|
45 |
| - build-target: "StandaloneWindows64" |
| 197 | + unity-username-var-name: "UNITY_USERNAME" |
| 198 | + unity-password-var-name: "UNITY_PASSWORD" |
46 | 199 | executor:
|
47 |
| - name: "unity/ubuntu-2021" |
48 |
| - target-platform: "windows-mono" |
| 200 | + name: "unity/windows-runner" |
| 201 | + resource_class: "namespace/resource-class-label" # can be found at: https://app.circleci.com/runners/github/<< your namespace >>/inventory |
| 202 | + working_directory: "C:\\Users\\circleci\\AppData\\Local\\Temp\\Workdir" |
| 203 | + editor_version: "2021.3.2f1" |
| 204 | + target_platform: "windows-il2cpp" |
| 205 | + project-path: "Unity2D-Demo-Game-CI-CD/src" |
| 206 | + build-target: StandaloneWindows64 |
| 207 | + compress: true |
49 | 208 | requires:
|
50 |
| - - test |
51 |
| - context: unity-orb # context with the UNITY_ENCODED_LICENSE variable |
| 209 | + - test-windows |
| 210 | + context: unity-orb |
0 commit comments