-
-
Notifications
You must be signed in to change notification settings - Fork 293
Description
Bug description
BuildTarget is ignored on linux building machine, The editor will start in Linux standalone no matter what
How to reproduce
on Windows this script
- name: Build Android Package
id: build-android-package
if: ${{ github.event.inputs.debug == 'false' || github.event_name != 'workflow_dispatch' }}
uses: game-ci/unity-builder@v4.3.0
env:
BUILD_APP_BUNDLE: ${{ env.BUILD_TYPE == 'aab' && 'true' || 'false' }}
with:
targetPlatform: Android
customImage: ${{ env.DOCKER_IMAGE }}
buildMethod: ${{ env.buildMethod }}
projectPath: ${{ env.WORKSPACE_PATH }}/lm_client # Updated project path
version: "1.0.0"
versioning: 'Custom'
customParameters: -nographics -silent-crashes -batchmode -quit -buildTarget Android -aabbundleversion ${{ needs.validate-build.outputs.BUNDLE_VERSION }} -keystorepass ${{ steps.keystore-params.outputs.KEYSTORE_PASS }} -keyalias ${{ steps.keystore-params.outputs.KEY_ALIAS }} -keypass ${{ steps.keystore-params.outputs.KEY_ALIAS_PASS }} -keystorebase64 ${{secrets.KEYSTORE_BASE64}} -isBM yes -adddefines ${{ github.event.inputs.extra-defines }}
started unity in Android mode, but on linux, regardless what I use, the editor always start in linux standalone mode.
I tried using 4.5.0 and 4.6.0 with the new build profile option and no change. The command line shows it should run in android mode
COMMAND LINE ARGUMENTS: /opt/unity/Editor/Unity -batchmode -logfile /dev/stdout -quit -customBuildName Android -projectPath /github/workspace/test-android/lm_client -customBuildTarget Android -customBuildPath /github/workspace/build/Android/Android.apk -customBuildProfile Assets/Settings/Android-Profiling.asset -activeBuildProfile Assets/Settings/Android-Profiling.asset -executeMethod Lm.Editor.BuildSupport.BuildAndroidApk -buildVersion 1.0.0 -androidVersionCode 1000000 -androidKeystoreName -androidKeystorePass -androidKeyaliasName -androidKeyaliasPass -androidTargetSdkVersion -androidExportType androidPackage -androidSymbolType none -nographics -silent-crashes -batchmode -quit -aabbundleversion 410 -keystorepass -keyalias -keypass -keystorebase64 *** -isBM yes -adddefines Successfully changed project path to: /github/workspace/test-android/lm_client
but there is nothing to do, it will always start without the UNITY_ANDROID define (and with the UNITY_STANDALONE_LINUX define enabled). Again this worked on windows, but is not working on linux no matter what. the image I use are:
unityci/editor:windows-6000.0.26f1-android-3.1
unityci/editor:ubuntu-6000.2.6f1-android-3.1.0
so as you can see the unity version is a factor too.