From a0c16871d1b42de192f3415c74ddc3e15448d022 Mon Sep 17 00:00:00 2001 From: Eric Ribeiro Date: Mon, 31 Oct 2022 13:17:37 -0700 Subject: [PATCH] chore: update examples (#44) --- .../test_and_build_personal_license.yml | 253 ++++++----------- .../test_and_build_pro_or_plus_license.yml | 257 +++++------------- 2 files changed, 146 insertions(+), 364 deletions(-) diff --git a/src/examples/test_and_build_personal_license.yml b/src/examples/test_and_build_personal_license.yml index 381c729..8894f7d 100755 --- a/src/examples/test_and_build_personal_license.yml +++ b/src/examples/test_and_build_personal_license.yml @@ -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 diff --git a/src/examples/test_and_build_pro_or_plus_license.yml b/src/examples/test_and_build_pro_or_plus_license.yml index 7658d11..2f97451 100755 --- a/src/examples/test_and_build_pro_or_plus_license.yml +++ b/src/examples/test_and_build_pro_or_plus_license.yml @@ -1,226 +1,109 @@ description: > Drop-in solution to automatically run tests and build your Unity project using a Pro or Plus 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" + name: 'test-linux' + step-name: 'Check if the tests run and results are uploaded' unity-serial-var-name: "UNITY_SERIAL" - unity-username-var-name: "UNITY_USERNAME" - unity-password-var-name: "UNITY_PASSWORD" + 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_USERNAME, UNITY_PASSWORD and UNITY_SERIAL variable - - unity/test: - name: "test-windows" - step-name: "Run tests on Windows" - unity-serial-var-name: "UNITY_SERIAL" - 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 + 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" + name: 'build-linux64-il2cpp' + step-name: 'Build StandaloneLinux64' unity-serial-var-name: "UNITY_SERIAL" - unity-username-var-name: "UNITY_USERNAME" - unity-password-var-name: "UNITY_PASSWORD" + 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" + # Windows + - unity/test: + name: 'test-windows' + step-name: 'Check if the tests run and results are uploaded' unity-serial-var-name: "UNITY_SERIAL" - unity-username-var-name: "UNITY_USERNAME" - unity-password-var-name: "UNITY_PASSWORD" + 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" + name: 'build-Windows64-il2cpp' + step-name: 'Build StandaloneWindows64 il2cpp' unity-serial-var-name: "UNITY_SERIAL" - unity-username-var-name: "UNITY_USERNAME" - unity-password-var-name: "UNITY_PASSWORD" + 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-serial-var-name: "UNITY_SERIAL" - unity-username-var-name: "UNITY_USERNAME" - unity-password-var-name: "UNITY_PASSWORD" - 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-serial-var-name: "UNITY_SERIAL" - unity-username-var-name: "UNITY_USERNAME" - unity-password-var-name: "UNITY_PASSWORD" - 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-serial-var-name: "UNITY_SERIAL" - unity-username-var-name: "UNITY_USERNAME" - unity-password-var-name: "UNITY_PASSWORD" - 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 - - unity/build: - name: "build-webgl" - step-name: "Build WebGL" - unity-serial-var-name: "UNITY_SERIAL" - unity-username-var-name: "UNITY_USERNAME" - unity-password-var-name: "UNITY_PASSWORD" - 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 - - unity/build: - name: "build-android" - step-name: "Build Android" - unity-serial-var-name: "UNITY_SERIAL" - unity-username-var-name: "UNITY_USERNAME" - unity-password-var-name: "UNITY_PASSWORD" - 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 - - unity/build: - name: "build-ios" - step-name: "Build iOS" - unity-serial-var-name: "UNITY_SERIAL" - unity-username-var-name: "UNITY_USERNAME" - unity-password-var-name: "UNITY_PASSWORD" - 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" + name: 'test-osx' + step-name: 'Check if the tests run and results are uploaded' unity-serial-var-name: "UNITY_SERIAL" - unity-username-var-name: "UNITY_USERNAME" - unity-password-var-name: "UNITY_PASSWORD" + 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_SERIAL 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" + name: 'build-osx-il2cpp' + step-name: 'Build macOS IL2CPP' unity-serial-var-name: "UNITY_SERIAL" - unity-username-var-name: "UNITY_USERNAME" - unity-password-var-name: "UNITY_PASSWORD" + 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