Skip to content

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

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

Closed
TristanWasTaken opened this issue Mar 6, 2024 · 3 comments
Labels
topic/gitea-actions related to the actions of Gitea type/docs This PR mainly updates/creates documentation

Comments

@TristanWasTaken
Copy link

TristanWasTaken commented Mar 6, 2024

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

@TristanWasTaken TristanWasTaken changed the title Gitea Act Runner doesn't emit ANDROID_SDK_ROOT env for GitHub workflows Gitea Act Runner doesn't set 'ANDROID_SDK_ROOT' env for GitHub workflows Mar 6, 2024
@TristanWasTaken TristanWasTaken changed the title Gitea Act Runner doesn't set 'ANDROID_SDK_ROOT' env for GitHub workflows Gitea Act Runner ubuntu image is missing ANDROID SDK for GitHub workflows Mar 6, 2024
@lunny lunny added topic/gitea-actions related to the actions of Gitea and removed type/bug labels Mar 7, 2024
@lunny
Copy link
Member

lunny commented Mar 7, 2024

I think this is by design that the default images of Gitea Actions will be very smaller than Github's

@TristanWasTaken
Copy link
Author

TristanWasTaken commented Mar 7, 2024

I think this is by design that the default images of Gitea Actions will be very smaller than Github's

@lunny if the goal of Gitea's action images is to be smaller at the cost of not supporting all gh workflows, then it should be documented on the comparison page and changed on other pages like Design of Gitea Actions which states "You can mirror actions repositories from GitHub to your Gitea instance, and use them as normal."
It does, in fact, not work as normal.

@lunny lunny added the type/docs This PR mainly updates/creates documentation label Apr 1, 2024
@lunny
Copy link
Member

lunny commented Jun 15, 2024

Now we have official runner images https://gitea.com/gitea/runner-images and an example for android https://gitea.com/action-examples/Android . I think we can close this now.

@lunny lunny closed this as completed Jun 15, 2024
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Sep 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
topic/gitea-actions related to the actions of Gitea type/docs This PR mainly updates/creates documentation
Projects
None yet
Development

No branches or pull requests

2 participants