-
-
Notifications
You must be signed in to change notification settings - Fork 294
Add androidTargetSdkVersion as an option to update the Android SDK #298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov Report
@@ Coverage Diff @@
## main #298 +/- ##
==========================================
+ Coverage 56.38% 56.72% +0.33%
==========================================
Files 23 23
Lines 775 781 +6
Branches 156 158 +2
==========================================
+ Hits 437 443 +6
Misses 337 337
Partials 1 1
|
A run where I don't set the EDIT: Looks like the second run didn't correctly update the SDK due to missing java home; I'll check again. |
I'm getting this error:
I tried to set the JAVA_HOME the way that it's done here: https://github.com/game-ci/docker/blob/main/editor/Dockerfile#L100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work, looks very clean and I like that you're only exposing one parameter and determine the rest in BuildParameters.create
.
re @davidmfinol:
Have you tried using |
Co-authored-by: Webber Takken <webber@takken.io>
…ilder into androidApiLevel
Same issue when I use |
I found that the JAVA_HOME for 2020.3 should be "$UNITY_PATH/Editor/Data/PlaybackEngines/AndroidPlayer/OpenJDK" (note the lack of "/Tools" and "/Linux"). My only concern now is that this JAVA_HOME path doesn't match the value I saw in our Dockerfile (I'm assuming maybe because of differing Unity versions?), and I'm not sure how to confirm what the correct path should be for each and every version of Unity. Thoughts on how to proceed? |
That referenced line in the editor docker file is actually only used by older versions of Unity. Lines 155-158 are what is used on newer versions (certainly a bit more convoluted). One thing I've ran into is depending on how the underlying container is accessed impacts whether or not the underlying environment variables have been exported (set in a unity wrapper script or ~/.bashrc only). Ideally it would be worth figuring out why neither the wrapper script or ~/.bashrc is being invoked to currently set the variables. We've used an ugly workaround by invoking the sdkmanager as follows: |
I'm not skilled with bash, so please help me understand. |
That is correct.
Yep.
Since the android sdk step is done prior to invoking the |
I get this error: |
Ah, yes. It's failing for the same reason that I just did a quick test, and replacing |
Great, that works! If no one has any concerns, I'll merge this tomorrow. |
Don't wanna review an old PR, but I just tried using the new param and it seems the actions haven't been updated since this PR was merged. Any hints on what the process could be here? Is is something an outsider can contribute or a specific process needs to be triggered? |
@trumpets thanks for your question. Ah I see that it's been a while since we've put out a new release. I'll put one out soon. In the meantime you can use |
Thank you @webbertakken ! I didn't know I could configure the action to use another version. Very cool! |
Changes
Checklist