Skip to content

Difference with GitHub image #503

@raphaelrobert

Description

@raphaelrobert

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions