From ba535f42b393ac5acef7b69a294794bd2bc13da6 Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Mon, 13 Nov 2023 22:21:48 -0500 Subject: [PATCH] com.utilities.buildpipeline 1.1.9 (#10) - Added support to export android symbols in cmd line args --- Documentation~/README.md | 25 +++++++++++++------------ Editor/Platforms/AndroidBuildInfo.cs | 10 ++++++++++ package.json | 2 +- 3 files changed, 24 insertions(+), 13 deletions(-) diff --git a/Documentation~/README.md b/Documentation~/README.md index c292fb0..e75b88f 100644 --- a/Documentation~/README.md +++ b/Documentation~/README.md @@ -60,6 +60,7 @@ jobs: build: runs-on: ${{ matrix.os }} strategy: + max-parallel: 2 # Use this if you're activating pro license with matrix matrix: include: - os: windows-latest @@ -70,7 +71,7 @@ jobs: build-target: StandaloneLinux64 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # Installs the Unity Editor based on your project version text file # sets -> env.UNITY_EDITOR_PATH @@ -80,19 +81,19 @@ jobs: with: modules: ${{ matrix.build-target }} - # # Activates the installation with the provided credentials - # # https://github.com/XRTK/activate-unity-license - # - uses: xrtk/activate-unity-license@v2 - # with: - # # Required - # username: ${{ secrets.UNITY_USERNAME }} - # password: ${{ secrets.UNITY_PASSWORD }} - # # Optional - # license-type: 'Personal' # Chooses license type to use [ Personal, Professional ] - # serial: ${{ secrets.UNITY_SERIAL }} # Required for pro/plus activations + # Activates the installation with the provided credentials + # https://github.com/XRTK/activate-unity-license + - uses: xrtk/activate-unity-license@v3 + with: + # Required + username: ${{ secrets.UNITY_USERNAME }} + password: ${{ secrets.UNITY_PASSWORD }} + # Optional + license-type: 'Professional' # Chooses license type to use [ Personal, Professional ] + serial: ${{ secrets.UNITY_SERIAL }} # Required for pro/plus activations - name: Unity Build (${{ matrix.build-target }}) - uses: RageAgainstThePixel/unity-build@v5 + uses: RageAgainstThePixel/unity-build@v6 with: build-target: ${{ matrix.build-target }} ``` diff --git a/Editor/Platforms/AndroidBuildInfo.cs b/Editor/Platforms/AndroidBuildInfo.cs index 1176a44..f4aaa27 100644 --- a/Editor/Platforms/AndroidBuildInfo.cs +++ b/Editor/Platforms/AndroidBuildInfo.cs @@ -48,6 +48,16 @@ public override void ParseCommandLineArgs() case "-export": EditorUserBuildSettings.exportAsGoogleAndroidProject = true; break; + case "-symbols": + var symbols = arguments[++i] switch + { + "public" => AndroidCreateSymbols.Public, + "debugging" => AndroidCreateSymbols.Debugging, + _ => AndroidCreateSymbols.Disabled + }; + + EditorUserBuildSettings.androidCreateSymbols = symbols; + break; } } diff --git a/package.json b/package.json index e9994c9..dedd1b1 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "Utilities.BuildPipeline", "description": "The Build Pipeline Utilities aims to give developers more tools and options when making builds with the command line or with continuous integration.", "keywords": [], - "version": "1.1.8", + "version": "1.1.9", "unity": "2019.4", "documentationUrl": "https://github.com/RageAgainstThePixel/com.utilities.buildpipeine#documentation", "changelogUrl": "https://github.com/RageAgainstThePixel/com.utilities.buildpipeine/releases",