Skip to content

Commit a0c1687

Browse files
authored
chore: update examples (#44)
1 parent e714013 commit a0c1687

File tree

2 files changed

+146
-364
lines changed

2 files changed

+146
-364
lines changed
+76-177
Original file line numberDiff line numberDiff line change
@@ -1,210 +1,109 @@
11
description: >
22
Drop-in solution to automatically run tests and build your Unity project using a Personal license.
3+
Make sure to read the documentation before using the orb: https://game.ci/docs/circleci/getting-started.
4+
For runner examples, see: https://game.ci/docs/circleci/executors#macos-runner and https://game.ci/docs/circleci/executors#windows-runner.
35
46
usage:
57
version: 2.1
68

79
orbs:
8-
unity: game-ci/unity@0.2.0
10+
unity: game-ci/unity@1.3.0
911

1012
workflows:
1113
test-build-with-executors:
1214
jobs:
1315
- checkout
16+
# Linux
1417
- unity/test:
15-
name: "test-linux"
16-
step-name: "Run tests on Linux"
17-
unity-license-var-name: "UNITY_ENCODED_LICENSE"
18+
name: 'test-linux'
19+
step-name: 'Check if the tests run and results are uploaded'
20+
unity-license-var-name: 'UNITY_ENCODED_LICENSE'
21+
unity-username-var-name: 'UNITY_USERNAME'
22+
unity-password-var-name: 'UNITY_PASSWORD'
1823
executor:
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"
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
24+
name: 'unity/ubuntu'
25+
target_platform: 'linux-il2cpp'
26+
editor_version: '2021.3.1f1'
27+
resource_class: 'medium'
28+
project-path: 'Unity2D-Demo-Game-CI-CD/src'
29+
test-platform: 'playmode'
30+
context: unity
4031
- unity/build:
41-
name: "build-linux64-il2cpp"
42-
step-name: "Build StandaloneLinux64 using IL2CPP"
43-
unity-license-var-name: "UNITY_ENCODED_LICENSE"
32+
name: 'build-linux64-il2cpp'
33+
step-name: 'Build StandaloneLinux64'
34+
unity-license-var-name: 'UNITY_ENCODED_LICENSE'
35+
unity-username-var-name: 'UNITY_USERNAME'
36+
unity-password-var-name: 'UNITY_PASSWORD'
4437
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"
38+
name: 'unity/ubuntu'
39+
target_platform: 'linux-il2cpp'
40+
editor_version: '2021.3.1f1'
41+
resource_class: 'large'
42+
project-path: 'Unity2D-Demo-Game-CI-CD/src'
5043
build-target: StandaloneLinux64
5144
compress: true
45+
context: unity
5246
requires:
5347
- 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"
48+
# Windows
49+
- unity/test:
50+
name: 'test-windows'
51+
step-name: 'Check if the tests run and results are uploaded'
52+
unity-license-var-name: 'UNITY_ENCODED_LICENSE'
53+
unity-username-var-name: 'UNITY_USERNAME'
54+
unity-password-var-name: 'UNITY_PASSWORD'
6155
executor:
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
69-
requires:
70-
- test-windows
71-
context: unity-orb
56+
name: 'unity/windows-2022'
57+
size: 'large'
58+
editor_version: '2021.3.2f1'
59+
target_platform: 'windows-il2cpp'
60+
project-path: 'Unity2D-Demo-Game-CI-CD/src'
61+
test-platform: 'playmode'
62+
context: unity
7263
- 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"
64+
name: 'build-Windows64-il2cpp'
65+
step-name: 'Build StandaloneWindows64 il2cpp'
66+
unity-license-var-name: 'UNITY_ENCODED_LICENSE'
67+
unity-username-var-name: 'UNITY_USERNAME'
68+
unity-password-var-name: 'UNITY_PASSWORD'
7869
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"
70+
name: 'unity/windows-2019'
71+
size: 'large'
72+
editor_version: '2021.3.2f1'
73+
target_platform: 'windows-il2cpp'
74+
project-path: 'Unity2D-Demo-Game-CI-CD/src'
8475
build-target: StandaloneWindows64
8576
compress: true
77+
context: unity
8678
requires:
8779
- 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
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:
133-
name: "build-webgl"
134-
step-name: "Build WebGL"
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"
142-
build-target: "WebGL"
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"
151-
executor:
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"
158-
requires:
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
80+
# macOS
17881
- 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"
82+
name: 'test-osx'
83+
step-name: 'Check if the tests run and results are uploaded'
84+
unity-license-var-name: 'UNITY_ENCODED_LICENSE'
85+
unity-username-var-name: 'UNITY_USERNAME'
86+
unity-password-var-name: 'UNITY_PASSWORD'
18487
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
88+
name: 'unity/macos'
89+
editor_version: '2021.3.1f1'
90+
resource_class: 'large'
91+
project-path: 'Unity2D-Demo-Game-CI-CD/src'
92+
test-platform: 'playmode'
93+
context: unity
19394
- unity/build:
194-
name: "build-windows64-il2cpp"
195-
step-name: "Build StandaloneWindows64 using IL2CPP"
196-
unity-license-var-name: "UNITY_ENCODED_LICENSE"
197-
unity-username-var-name: "UNITY_USERNAME"
198-
unity-password-var-name: "UNITY_PASSWORD"
95+
name: 'build-osx-il2cpp'
96+
step-name: 'Build macOS IL2CPP'
97+
unity-license-var-name: 'UNITY_ENCODED_LICENSE'
98+
unity-username-var-name: 'UNITY_USERNAME'
99+
unity-password-var-name: 'UNITY_PASSWORD'
199100
executor:
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
101+
name: 'unity/macos'
102+
resource_class: "large"
103+
editor_version: '2021.3.2f1'
104+
project-path: 'Unity2D-Demo-Game-CI-CD/src'
105+
build-target: StandaloneOSX
207106
compress: true
107+
context: unity
208108
requires:
209-
- test-windows
210-
context: unity-orb
109+
- test-osx

0 commit comments

Comments
 (0)