Skip to content
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

fix(ubuntu): specify all avd-related environment variables #410

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mikehardy
Copy link

@mikehardy mikehardy commented Oct 11, 2024

This action does simply define all of the standard env vars per the android documentation https://developer.android.com/tools/variables#envar

Additionally, it forcibly overwrites those variables though there may be valid reasons that they exist already:

1- for self-hosted runners people may define the variables so the large AVD files are in a non-standard location
2- for ubuntu-24 with XDG_CONFIG_HOME set (vs ubuntu-22) one of the variables was already set, but to an unexpected location. You can either clobber it and install (which works) or you can take it and use it (which was also a valid workaround)

This PR attempts to respect the variables if they exist, but make sure they are all set + directories are created either way

Osoletes #405

Allow for users to modify android install directories via standard
environment variables if desired by not clobbering env vars without
checking first

Define all the standard environment variables used in an emulator context
@mikehardy
Copy link
Author

@ychescale9 I updated this PR to match current main and edited the description to justify why I think it is worthwhile
Fine if you disagree - we can just close it then - but wanted to at least post it once current + clean in case it could go in
Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant