Skip to content

Commit

Permalink
chore: update examples (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricRibeiro authored Oct 31, 2022
1 parent e714013 commit a0c1687
Show file tree
Hide file tree
Showing 2 changed files with 146 additions and 364 deletions.
253 changes: 76 additions & 177 deletions src/examples/test_and_build_personal_license.yml
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
Loading

0 comments on commit a0c1687

Please sign in to comment.