Skip to content

Commit 0d18090

Browse files
authored
feat: add resource class to executors (#7)
1 parent 9062840 commit 0d18090

File tree

6 files changed

+63
-0
lines changed

6 files changed

+63
-0
lines changed

.circleci/test-deploy.yml

+18
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ workflows:
181181
executor:
182182
name: "unity/ubuntu-2021"
183183
target-platform: "linux-il2cpp"
184+
resource-class: "medium"
184185
project-path: "Unity2D-Demo-Game-CI-CD/src"
185186
build-target: StandaloneLinux64
186187
compress: true
@@ -195,6 +196,7 @@ workflows:
195196
executor:
196197
name: "unity/ubuntu-2021"
197198
target-platform: "webgl"
199+
resource-class: "large"
198200
project-path: "Unity2D-Demo-Game-CI-CD/src"
199201
build-target: "WebGL"
200202
compress: false
@@ -209,12 +211,27 @@ workflows:
209211
executor:
210212
name: "unity/ubuntu-2021"
211213
target-platform: "windows-mono"
214+
resource-class: "medium"
212215
project-path: "Unity2D-Demo-Game-CI-CD/src"
213216
build-target: "StandaloneWindows64"
214217
requires:
215218
- test
216219
filters: *filters
217220
context: orb-testing-unity
221+
- build:
222+
name: "build-osx"
223+
step-name: "Build StandaloneOSX"
224+
unity-license-var-name: "UNITY_ENCODED_LICENSE_2021"
225+
executor:
226+
name: "unity/ubuntu-2021"
227+
target-platform: "mac-mono"
228+
resource-class: "medium"
229+
project-path: "Unity2D-Demo-Game-CI-CD/src"
230+
build-target: "StandaloneOSX"
231+
requires:
232+
- test
233+
filters: *filters
234+
context: orb-testing-unity
218235
- orb-tools/pack:
219236
filters: *filters
220237
- orb-tools/publish:
@@ -227,6 +244,7 @@ workflows:
227244
- build-linux64
228245
- build-webgl
229246
- build-windows64
247+
- build-osx
230248
context: orb-publishing
231249
filters:
232250
branches:

src/executors/ubuntu-2018.yml

+9
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,18 @@ parameters:
99
More information can be found at: https://game.ci/docs/docker/docker-images.
1010
type: enum
1111
enum: [ "android", "base", "ios", "mac-mono", "webgl", "windows-mono" ]
12+
resource-class:
13+
description: |
14+
Resource class used for the executor.
15+
If you are receiving a "CircleCI received exit code 137" from the build job, you may need to increase the resource class.
16+
type: enum
17+
default: large
18+
enum: [ small, medium, medium+, large, xlarge, 2xlarge, 2xlarge+ ]
1219

1320
docker:
1421
- image: 'unityci/editor:ubuntu-2018.4.36f1-<< parameters.target-platform >>-1'
1522
environment:
1623
- GAMECI_EDITOR_VERSION="2018.4.36f1"
1724
- GAMECI_TARGET_PLATFORM=<< parameters.target-platform >>
25+
26+
resource_class: << parameters.resource-class >>

src/executors/ubuntu-2019.yml

+9
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,18 @@ parameters:
99
More information can be found at: https://game.ci/docs/docker/docker-images.
1010
type: enum
1111
enum: [ "android", "base", "ios", "linux-il2cpp", "mac-mono", "webgl", "windows-mono" ]
12+
resource-class:
13+
description: |
14+
Resource class used for the executor.
15+
If you are receiving a "CircleCI received exit code 137" from the build job, you may need to increase the resource class.
16+
type: enum
17+
default: large
18+
enum: [ small, medium, medium+, large, xlarge, 2xlarge, 2xlarge+ ]
1219

1320
docker:
1421
- image: 'unityci/editor:ubuntu-2019.4.38f1-<< parameters.target-platform >>-1'
1522
environment:
1623
- GAMECI_EDITOR_VERSION="2019.4.38f1"
1724
- GAMECI_TARGET_PLATFORM=<< parameters.target-platform >>
25+
26+
resource_class: << parameters.resource-class >>

src/executors/ubuntu-2020.yml

+9
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,18 @@ parameters:
99
More information can be found at: https://game.ci/docs/docker/docker-images.
1010
type: enum
1111
enum: [ "android", "base", "ios", "linux-il2cpp", "mac-mono", "webgl", "windows-mono" ]
12+
resource-class:
13+
description: |
14+
Resource class used for the executor.
15+
If you are receiving a "CircleCI received exit code 137" from the build job, you may need to increase the resource class.
16+
type: enum
17+
default: large
18+
enum: [ small, medium, medium+, large, xlarge, 2xlarge, 2xlarge+ ]
1219

1320
docker:
1421
- image: 'unityci/editor:ubuntu-2020.3.33f1-<< parameters.target-platform >>-1'
1522
environment:
1623
- GAMECI_EDITOR_VERSION="2020.3.33f1"
1724
- GAMECI_TARGET_PLATFORM=<< parameters.target-platform >>
25+
26+
resource_class: << parameters.resource-class >>

src/executors/ubuntu-2021.yml

+9
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,18 @@ parameters:
99
More information can be found at: https://game.ci/docs/docker/docker-images.
1010
type: enum
1111
enum: [ "android", "base", "ios", "linux-il2cpp", "mac-mono", "webgl", "windows-mono" ]
12+
resource-class:
13+
description: |
14+
Resource class used for the executor.
15+
If you are receiving a "CircleCI received exit code 137" from the build job, you may need to increase the resource class.
16+
type: enum
17+
default: large
18+
enum: [ small, medium, medium+, large, xlarge, 2xlarge, 2xlarge+ ]
1219

1320
docker:
1421
- image: 'unityci/editor:ubuntu-2021.3.1f1-<< parameters.target-platform >>-1'
1522
environment:
1623
- GAMECI_EDITOR_VERSION="2021.3.1f1"
1724
- GAMECI_TARGET_PLATFORM=<< parameters.target-platform >>
25+
26+
resource_class: << parameters.resource-class >>

src/executors/ubuntu.yml

+9
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,18 @@ parameters:
1717
Make sure to pick the same major version as the Unity version you generated the license for.
1818
Available options can be found at https://game.ci/docs/docker/versions.
1919
type: string
20+
resource-class:
21+
description: |
22+
Resource class used for the executor.
23+
If you are receiving a "CircleCI received exit code 137" from the build job, you may need to increase the resource class.
24+
type: enum
25+
default: large
26+
enum: [ small, medium, medium+, large, xlarge, 2xlarge, 2xlarge+ ]
2027

2128
docker:
2229
- image: 'unityci/editor:ubuntu-<<parameters.editor-version>>-<<parameters.target-platform>>-1'
2330
environment:
2431
- GAMECI_EDITOR_VERSION=<< parameters.editor-version >>
2532
- GAMECI_TARGET_PLATFORM=<< parameters.target-platform >>
33+
34+
resource_class: << parameters.resource-class >>

0 commit comments

Comments
 (0)