Skip to content

Gitea Act Runner ubuntu image is missing ANDROID SDK for GitHub workflows #29635

Description

@TristanWasTaken

Description

I've been busy/lazy since my last issue (#28847). I discovered the issue on 2024-01-16 (yyyy-mm-dd).

when mirroring the gh repo https://github.com/mihonapp/mihon and enabling actions that run on every new commit, the job fails on gitea even though it succeeds on github
error: SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable'.

tldr; turns out github's ubuntu image has the Android SDK preinstalled, while Gitea's image doesn't have it
gitea would (probably) need uses: android-actions/setup-android@v2 to be added in the workflow config files for it to work without it preinstalled.

relevant section in workflow files:

If I should try to repro it on the demo site, please tell me.

Gitea Version

1.21.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Docker

How are you running Gitea?

gitea: docker gitea/gitea:1.21.3
runner: docker gitea/act_runner:nightly (2024-01-16/yyyy-mm-dd)

Database

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic/gitea-actionsrelated to the actions of Giteatype/docsThis PR mainly updates/creates documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions