Move post-action into main-action to allow 3rd party GitHub action runner
See original GitHub issueGitHub action runner unfortunately only supports the three major OS systems, e.g. Windows, macOS, Linux (unlike GitLab runner). Native users may want to run their Gradle build on other self-hosted systems such as FreeBSD, Solaris, etc. or other architectures like PPC, MIPS, ARM, etc. The github-act-runner seems to be the recommended solution. Unfortunately, this runner doesn’t support pre/post actions. Double unfortunately, GitHub doesn’t seem to be interested in solving support for more OS/Architecture any time soon.
It seems to be quite trivial to modify the action and execute the only cache.save() in the main-action allowing wider support for this GitHub action.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Developing a third party CLI action - GitHub Enterprise Cloud ...
Introduction. You can write an action to provide a way for users to access your servers via a configured CLI environment on GitHub...
Read more >Add FreeBSD runner · Issue #2529 - GitHub
Although FreeBSD is used by many teams in production, ... Move post-action into main-action to allow 3rd party GitHub action runner ...
Read more >Managing GitHub Actions settings for a repository - GitHub Docs
When you enable GitHub Actions, workflows are able to run actions and reusable workflows located within your repository and any other public repository....
Read more >Workflow commands for GitHub Actions
You can use workflow commands when running shell commands in a workflow or in an ... to the main: action, and then use...
Read more >Metadata syntax for GitHub Actions - GitHub Docs
You can create actions to perform tasks in your repository. Actions require a metadata file that uses YAML syntax.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

As I said, I’m willing to make it possible to use a separate action step to cache the Gradle User Home, assuming that this change doesn’t impact the majority of users who don’t require it. I think the simplest and least intrusive mechanism would be a special configuration option that enables this.
If you’re interested in pushing this forward I suggest that you fork this repo and try it out. My experience with https://github.com/nektos/act was not great, so there may be other blockers in getting
gradle-build-actionto work ongithub-act-runner.I don’t exactly agree, but I can see why it isn’t much of an issue. Let’s close this issue as won’t fix.