-
Notifications
You must be signed in to change notification settings - Fork 75
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
Poor Github Actions support #62
Comments
Hello, This problem is tracked upstream in The same concept naturally extends to termux-docker. Since Termux is an Android-based distro, it uses a I have forked your repository and added a commit in which I implemented an example of successfully using Also, it might be helpful to mention that TUR utilizes termux-docker within GitHub Actions via a large workflow involving self-hosted runners and manually-invoked Docker sessions, and a script |
It would be nice if termux-docker supported Github Actions better. Hopefully, people will add Termux to their CI.
I made a test repository to showcase it: guijan/termux-on-gha
The issue is that right now there's no documentation on how to get it working, and the straightforward way is broken. Here's the current state of things:
https://github.com/guijan/termux-on-gha/blob/a9a2cf26be0299c1643be12acfa301b0465ad2c1/.github/workflows/build-and-test.yml
The file is short and commented, hopefully it's easy to follow.
Users need to prefix
pkg
andpip
with the /entrypoint.sh script because otherwise they run as the root user and error. This happens because github overrides the entrypoint, as can be seen here: https://github.com/orgs/community/discussions/26465If you fix the issue above, you will run into further breakage. The widely used checkout and upload-artifact actions don't currently work with Termux. The checkout action errors because of the same problem as this issue I found out there (no /etc/os-release file, and possibly more): prometheus/prometheus#12656
Someone has suggested adding an /etc/os-release to Termux before: termux/termux-app#2620
I haven't investigated why the upload-artifact action fails.
The text was updated successfully, but these errors were encountered: