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

Support Windows #1608

Open
Michael-Tang-2009 opened this issue Feb 5, 2023 · 9 comments
Open

Support Windows #1608

Michael-Tang-2009 opened this issue Feb 5, 2023 · 9 comments
Labels
kind/feature-request New feature or request

Comments

@Michael-Tang-2009
Copy link

Act version

V0.2.42

Feature description

I'm working with .NET Framework, but this act may not support it. So, I hope that this will be support Windows soon.

@Michael-Tang-2009 Michael-Tang-2009 added the kind/feature-request New feature or request label Feb 5, 2023
@ChristopherHX
Copy link
Contributor

This feature is included in recent releases of nektos/act.

Warning add defaults.run.shell to your job, otherwise act tries to use bash instead of powershell.

./act -P windows-latest=-self-hosted -W test.yml

@Michael-Tang-2009
Copy link
Author

First of all. I want to thank you for your helping. I may not find docs about it right now, really. Hummmmm, there is some problem with it, just like the picture
ERROR_LOG
.

I have two question here:

Does it runs on something like docker image?
I used the command that you posted out in the last commented, but there meight something goes wrong. Or maybe I need to download all the action code which I reference in my workflow file and put it into folder "action" or something else?

@ChristopherHX
Copy link
Contributor

Does it runs on something like docker image?

No, it runs actions directly on your windows system.

I used the command that you posted out in the last commented, but there meight something goes wrong

You have to install nodejs from https://nodejs.org/en/ for most actions to work.
Otherwise you can only use composite actions and run scripts.

@Michael-Tang-2009
Copy link
Author

Thanks for all the helpings, I will try it later to make sure that runs correctly and I'll close this.
I want to advice that I meight cannot find anything about windows platform, so that I think it is important to add into README.md.

@Michael-Tang-2009
Copy link
Author

Hummmmm, I do not know how to deal with this:
time="2023-02-05T21:01:20+08:00" level=warning msg="unable to get git repo: remote not found"
time="2023-02-05T21:01:20+08:00" level=error msg="failed to obtain container engine info: error during connect: in the default daemon configuration on Windows, the docker client must be run with elevated privileges to connect: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/info": open //./pipe/docker_engine: The system cannot find the file specified."

@ChristopherHX
Copy link
Contributor

ChristopherHX commented Feb 5, 2023

I'm just ignoring that "failed to obtain container engine info" error.

This windows mode has known issues, which might be good to resolve before documenting it for everyone.

@Michael-Tang-2009
Copy link
Author

Michael-Tang-2009 commented Feb 6, 2023

I'm also have the problem message like time="2023-02-06T09:08:36+08:00" level=warning msg="unable to get git repo: remote not found"
But I already checked the config file where under .git folder.

@dalleyg
Copy link

dalleyg commented Feb 23, 2024

Is there a way to run test actions on the Windows platform from WSL2 (running under Windows)?

@wangito33
Copy link

Job cancelling doesn't work on Windows?

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

4 participants