-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e714013
commit a0c1687
Showing
2 changed files
with
146 additions
and
364 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,210 +1,109 @@ | ||
description: > | ||
Drop-in solution to automatically run tests and build your Unity project using a Personal license. | ||
Make sure to read the documentation before using the orb: https://game.ci/docs/circleci/getting-started. | ||
For runner examples, see: https://game.ci/docs/circleci/executors#macos-runner and https://game.ci/docs/circleci/executors#windows-runner. | ||
usage: | ||
version: 2.1 | ||
|
||
orbs: | ||
unity: game-ci/unity@0.2.0 | ||
unity: game-ci/unity@1.3.0 | ||
|
||
workflows: | ||
test-build-with-executors: | ||
jobs: | ||
- checkout | ||
# Linux | ||
- unity/test: | ||
name: "test-linux" | ||
step-name: "Run tests on Linux" | ||
unity-license-var-name: "UNITY_ENCODED_LICENSE" | ||
name: 'test-linux' | ||
step-name: 'Check if the tests run and results are uploaded' | ||
unity-license-var-name: 'UNITY_ENCODED_LICENSE' | ||
unity-username-var-name: 'UNITY_USERNAME' | ||
unity-password-var-name: 'UNITY_PASSWORD' | ||
executor: | ||
name: "unity/ubuntu" | ||
target_platform: "linux-il2cpp" | ||
editor_version: "2021.3.1f1" | ||
resource_class: "medium" | ||
project-path: "Unity2D-Demo-Game-CI-CD/src" | ||
test-platform: "playmode" | ||
context: unity-orb # context with the UNITY_ENCODED_LICENSE variable | ||
- unity/test: | ||
name: "test-windows" | ||
step-name: "Run tests on Windows" | ||
unity-license-var-name: "UNITY_ENCODED_LICENSE" | ||
unity-username-var-name: "UNITY_USERNAME" | ||
unity-password-var-name: "UNITY_PASSWORD" | ||
executor: | ||
name: "unity/windows-2019" | ||
size: "large" | ||
editor_version: "2021.3.2f1" | ||
target_platform: "windows-il2cpp" | ||
project-path: "Unity2D-Demo-Game-CI-CD/src" | ||
test-platform: "playmode" | ||
context: unity-orb # context with the UNITY_USERNAME, UNITY_PASSWORD and UNITY_ENCODED_LICENSE variable | ||
name: 'unity/ubuntu' | ||
target_platform: 'linux-il2cpp' | ||
editor_version: '2021.3.1f1' | ||
resource_class: 'medium' | ||
project-path: 'Unity2D-Demo-Game-CI-CD/src' | ||
test-platform: 'playmode' | ||
context: unity | ||
- unity/build: | ||
name: "build-linux64-il2cpp" | ||
step-name: "Build StandaloneLinux64 using IL2CPP" | ||
unity-license-var-name: "UNITY_ENCODED_LICENSE" | ||
name: 'build-linux64-il2cpp' | ||
step-name: 'Build StandaloneLinux64' | ||
unity-license-var-name: 'UNITY_ENCODED_LICENSE' | ||
unity-username-var-name: 'UNITY_USERNAME' | ||
unity-password-var-name: 'UNITY_PASSWORD' | ||
executor: | ||
name: "unity/ubuntu" | ||
target_platform: "linux-il2cpp" | ||
editor_version: "2021.3.1f1" | ||
resource_class: "large" | ||
project-path: "Unity2D-Demo-Game-CI-CD/src" | ||
name: 'unity/ubuntu' | ||
target_platform: 'linux-il2cpp' | ||
editor_version: '2021.3.1f1' | ||
resource_class: 'large' | ||
project-path: 'Unity2D-Demo-Game-CI-CD/src' | ||
build-target: StandaloneLinux64 | ||
compress: true | ||
context: unity | ||
requires: | ||
- test-linux | ||
context: unity-orb | ||
- unity/build: | ||
name: "build-windows64-il2cpp" | ||
step-name: "Build StandaloneWindows64 using IL2CPP" | ||
unity-license-var-name: "UNITY_ENCODED_LICENSE" | ||
unity-username-var-name: "UNITY_USERNAME" | ||
unity-password-var-name: "UNITY_PASSWORD" | ||
# Windows | ||
- unity/test: | ||
name: 'test-windows' | ||
step-name: 'Check if the tests run and results are uploaded' | ||
unity-license-var-name: 'UNITY_ENCODED_LICENSE' | ||
unity-username-var-name: 'UNITY_USERNAME' | ||
unity-password-var-name: 'UNITY_PASSWORD' | ||
executor: | ||
name: "unity/windows-2019" | ||
size: "large" | ||
editor_version: "2021.3.2f1" | ||
target_platform: "windows-il2cpp" | ||
project-path: "Unity2D-Demo-Game-CI-CD/src" | ||
build-target: StandaloneWindows64 | ||
compress: true | ||
requires: | ||
- test-windows | ||
context: unity-orb | ||
name: 'unity/windows-2022' | ||
size: 'large' | ||
editor_version: '2021.3.2f1' | ||
target_platform: 'windows-il2cpp' | ||
project-path: 'Unity2D-Demo-Game-CI-CD/src' | ||
test-platform: 'playmode' | ||
context: unity | ||
- unity/build: | ||
name: "build-windows64-il2cpp-cuda" | ||
step-name: "Build StandaloneWindows64 using IL2CPP and CUDA executor" | ||
unity-license-var-name: "UNITY_ENCODED_LICENSE" | ||
unity-username-var-name: "UNITY_USERNAME" | ||
unity-password-var-name: "UNITY_PASSWORD" | ||
name: 'build-Windows64-il2cpp' | ||
step-name: 'Build StandaloneWindows64 il2cpp' | ||
unity-license-var-name: 'UNITY_ENCODED_LICENSE' | ||
unity-username-var-name: 'UNITY_USERNAME' | ||
unity-password-var-name: 'UNITY_PASSWORD' | ||
executor: | ||
name: "unity/windows-2019-cuda" | ||
size: "medium" | ||
editor_version: "2021.3.2f1" | ||
target_platform: "windows-il2cpp" | ||
project-path: "Unity2D-Demo-Game-CI-CD/src" | ||
name: 'unity/windows-2019' | ||
size: 'large' | ||
editor_version: '2021.3.2f1' | ||
target_platform: 'windows-il2cpp' | ||
project-path: 'Unity2D-Demo-Game-CI-CD/src' | ||
build-target: StandaloneWindows64 | ||
compress: true | ||
context: unity | ||
requires: | ||
- test-windows | ||
context: unity-orb | ||
- unity/build: | ||
name: "build-linux64-mono" | ||
step-name: "Build StandaloneLinux64 using Mono" | ||
unity-license-var-name: "UNITY_ENCODED_LICENSE" | ||
executor: | ||
name: "unity/ubuntu" | ||
target_platform: "base" | ||
editor_version: "2021.3.1f1" | ||
resource_class: "large" | ||
project-path: "Unity2D-Demo-Game-CI-CD/src" | ||
build-target: StandaloneLinux64 | ||
compress: true | ||
requires: | ||
- test-linux | ||
context: unity-orb | ||
- unity/build: | ||
name: "build-windows64-mono" | ||
step-name: "Build StandaloneWindows64 using Mono" | ||
unity-license-var-name: "UNITY_ENCODED_LICENSE" | ||
executor: | ||
name: "unity/ubuntu" | ||
target_platform: "windows-mono" | ||
editor_version: "2021.3.2f1" | ||
resource_class: "large" | ||
project-path: "Unity2D-Demo-Game-CI-CD/src" | ||
build-target: "StandaloneWindows64" | ||
requires: | ||
- test-linux | ||
context: unity-orb | ||
- unity/build: | ||
name: "build-osx-mono" | ||
step-name: "Build StandaloneOSX using Mono" | ||
unity-license-var-name: "UNITY_ENCODED_LICENSE" | ||
executor: | ||
name: "unity/ubuntu" | ||
target_platform: "mac-mono" | ||
editor_version: "2021.3.2f1" | ||
resource_class: "large" | ||
project-path: "Unity2D-Demo-Game-CI-CD/src" | ||
build-target: "StandaloneOSX" | ||
requires: | ||
- test-linux | ||
context: unity-orb | ||
- build: | ||
name: "build-webgl" | ||
step-name: "Build WebGL" | ||
unity-license-var-name: "UNITY_ENCODED_LICENSE" | ||
executor: | ||
name: "unity/ubuntu" | ||
target_platform: "webgl" | ||
editor_version: "2021.3.1f1" | ||
resource_class: "large" | ||
project-path: "Unity2D-Demo-Game-CI-CD/src" | ||
build-target: "WebGL" | ||
compress: false | ||
requires: | ||
- test-linux | ||
context: unity-orb | ||
- build: | ||
name: "build-android" | ||
step-name: "Build Android" | ||
unity-license-var-name: "UNITY_ENCODED_LICENSE" | ||
executor: | ||
name: "unity/ubuntu" | ||
target_platform: "android" | ||
editor_version: "2021.3.2f1" | ||
resource_class: "large" | ||
project-path: "Unity2D-Demo-Game-CI-CD/src" | ||
build-target: "Android" | ||
requires: | ||
- test-linux | ||
context: unity-orb | ||
- build: | ||
name: "build-ios" | ||
step-name: "Build iOS" | ||
unity-license-var-name: "UNITY_ENCODED_LICENSE" | ||
executor: | ||
name: "unity/ubuntu" | ||
target_platform: "ios" | ||
editor_version: "2021.3.2f1" | ||
resource_class: "large" | ||
project-path: "Unity2D-Demo-Game-CI-CD/src" | ||
build-target: "iOS" | ||
requires: | ||
- test-linux | ||
context: unity-orb | ||
test-build-with-windows-runner: | ||
jobs: | ||
- checkout | ||
# macOS | ||
- unity/test: | ||
name: "test-windows" | ||
step-name: "Run tests on Windows" | ||
unity-license-var-name: "UNITY_ENCODED_LICENSE" | ||
unity-username-var-name: "UNITY_USERNAME" | ||
unity-password-var-name: "UNITY_PASSWORD" | ||
name: 'test-osx' | ||
step-name: 'Check if the tests run and results are uploaded' | ||
unity-license-var-name: 'UNITY_ENCODED_LICENSE' | ||
unity-username-var-name: 'UNITY_USERNAME' | ||
unity-password-var-name: 'UNITY_PASSWORD' | ||
executor: | ||
name: "unity/windows-runner" | ||
resource_class: "namespace/resource-class-label" # can be found at: https://app.circleci.com/runners/github/<< your namespace >>/inventory | ||
working_directory: "C:\\Users\\circleci\\AppData\\Local\\Temp\\Workdir" | ||
editor_version: "2021.3.2f1" | ||
target_platform: "windows-il2cpp" | ||
project-path: "Unity2D-Demo-Game-CI-CD/src" | ||
test-platform: "playmode" | ||
context: unity-orb # context with the UNITY_USERNAME, UNITY_PASSWORD and UNITY_ENCODED_LICENSE variable | ||
name: 'unity/macos' | ||
editor_version: '2021.3.1f1' | ||
resource_class: 'large' | ||
project-path: 'Unity2D-Demo-Game-CI-CD/src' | ||
test-platform: 'playmode' | ||
context: unity | ||
- unity/build: | ||
name: "build-windows64-il2cpp" | ||
step-name: "Build StandaloneWindows64 using IL2CPP" | ||
unity-license-var-name: "UNITY_ENCODED_LICENSE" | ||
unity-username-var-name: "UNITY_USERNAME" | ||
unity-password-var-name: "UNITY_PASSWORD" | ||
name: 'build-osx-il2cpp' | ||
step-name: 'Build macOS IL2CPP' | ||
unity-license-var-name: 'UNITY_ENCODED_LICENSE' | ||
unity-username-var-name: 'UNITY_USERNAME' | ||
unity-password-var-name: 'UNITY_PASSWORD' | ||
executor: | ||
name: "unity/windows-runner" | ||
resource_class: "namespace/resource-class-label" # can be found at: https://app.circleci.com/runners/github/<< your namespace >>/inventory | ||
working_directory: "C:\\Users\\circleci\\AppData\\Local\\Temp\\Workdir" | ||
editor_version: "2021.3.2f1" | ||
target_platform: "windows-il2cpp" | ||
project-path: "Unity2D-Demo-Game-CI-CD/src" | ||
build-target: StandaloneWindows64 | ||
name: 'unity/macos' | ||
resource_class: "large" | ||
editor_version: '2021.3.2f1' | ||
project-path: 'Unity2D-Demo-Game-CI-CD/src' | ||
build-target: StandaloneOSX | ||
compress: true | ||
context: unity | ||
requires: | ||
- test-windows | ||
context: unity-orb | ||
- test-osx |
Oops, something went wrong.