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

Difference with GitHub image #503

Open
raphaelrobert opened this issue Jan 10, 2025 · 0 comments
Open

Difference with GitHub image #503

raphaelrobert opened this issue Jan 10, 2025 · 0 comments

Comments

@raphaelrobert
Copy link

There is a small difference with GitHub images that can break tools (in my case cargokit).

In the GitHub ubuntu image the path to cmdline-tools is always called .android/sdk/cmdline-tools/latest because of how they are installed.

With the setup-android action, latest can be the actual short version number (16.0 at the time of writing).

The following workaround helps:

cd ~/.android/sdk/cmdline-tools/
LATEST_DIR=$(ls -d [0-9]*.[0-9]* 2>/dev/null | sort -V | tail -n 1)
ln -s "$LATEST_DIR" latest

It would be nice if the action mimicked the behavior of the GitHub image.

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

No branches or pull requests

1 participant