Skip to content

Commit

Permalink
com.utilities.buildpipeline 1.1.9 (#10)
Browse files Browse the repository at this point in the history
- Added support to export android symbols in cmd line args
  • Loading branch information
StephenHodgson authored Nov 14, 2023
1 parent ae37635 commit ba535f4
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.
25 changes: 13 additions & 12 deletions Documentation~/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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 }}
```
10 changes: 10 additions & 0 deletions Editor/Platforms/AndroidBuildInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ba535f4

Please sign in to comment.