Skip to content
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

Autoconfigure for running on Mac platform #2445

Open
boxley-anaconda opened this issue Sep 10, 2024 · 1 comment
Open

Autoconfigure for running on Mac platform #2445

boxley-anaconda opened this issue Sep 10, 2024 · 1 comment
Labels
kind/feature-request New feature or request

Comments

@boxley-anaconda
Copy link

boxley-anaconda commented Sep 10, 2024

Act version

0.2.66

Feature description

I'd like easier "out of the box" experience for using act on Macs.
It took quite a bit of research & experimentation to arrive at:

gh act --container-architecture linux/amd64 -P self-hosted-main=catthehacker/ubuntu:act-latest

Ideally act would see that it is running on Mac, and autoset these, perhaps with a friendly warning message, and maybe some config setting to make this permanent without a warning.

Similarly, the documentation might call this out more explicitly. I pieced it together from gh act and gh act --container-architecture linux/amd64 output, and research on the errors (the Internet has a lot of outdated/wrong examples to fall into).
And this error message was very hard to interpret:

Skipping unsupported platform -- Try running with `-P self-hosted-main=...

That's the literal message: it cuts off with "...".

In contrast, running on Ubuntu under WSL2 the user experience was ideal: it just worked.
I got real excited by gh act from that, and started trying it with paid work on a MacBook to share the "dynamic duo" of gh and act with my teammates.

@ChristopherHX
Copy link
Contributor

Me as a maintainer of act and windows / linux user without a vision of nektos/act as a standalone cli tool, hope for more actionable items here to get part of my roadmap, see recently added backlog labels.

My backlog progress will stall if my PR's get stale during review and my concurrency limit for nektos/act has been hit

E.g. Suggestion to change an error message to some suggested message are much better.

Adding a link to a full docu site page on nektosact.com is possible as well

And this error message was very hard to interpret:

Skipping unsupported platform -- Try running with `-P self-hosted-main=...

That's the literal message: it cuts off with "...".

Technically ... this is the end of the message in the source code. Now you have the choice, to use a docker image, run directly on your mac/linux/windows etc.

There would be this docu: https://nektosact.com/usage/runners.html, code here: https://github.com/nektos/act-docs

So what can we do to make this easier to interpret? I assume you found the expected resolution.

--container-architecture linux/amd64

The long story, we received a lot of bug reports of people expecting a intel env on an arm device.
Those this is logged as a warning.

act can run just fine with the default natively on arm64, it's faster, more energy efficient. However different to the usually used ubuntu-latest VM.

Now what can be done that you can easier get act up and running for your usecase without pain?

  • Figure out how act has been called and prepend e.g. gh act / act conditionally to the suggested cli switch?
  • Suggest to create a .actrc file with the cli switches? This can make the cli to shrink to just gh act / act
  • More links to nektosact.com in messages?

The -P self-hosted-main= portion is not possible to be auto configured, we don't know if you expect it to be linux/mac/(windows, a mac host can't do this without vm)

Or do you expect a wizard like experience, that act ask you what you want when it doesn't know the label?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature-request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants