mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[GH-ISSUE #1608] Support Windows #806
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#806
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Michael-Tang-2009 on GitHub (Feb 5, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/1608
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.
@ChristopherHX commented on GitHub (Feb 5, 2023):
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.
@Michael-Tang-2009 commented on GitHub (Feb 5, 2023):
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

.
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 commented on GitHub (Feb 5, 2023):
No, it runs actions directly on your windows system.
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 commented on GitHub (Feb 5, 2023):
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 commented on GitHub (Feb 5, 2023):
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 commented on GitHub (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.
the env context needs to be case insensitive on windows, but isn't right now.Fixed (#1732)default shell on windows is wrong (fixes:Fixed (#1942)github.com/ChristopherHX/act@62e165f3c6,github.com/ChristopherHX/act@092f283111)cmd cannot be used as shell (Fixed (#1941)github.com/ChristopherHX/act@4ac9ff4983)hashfiles is broken (fixes:(Does't apply to HostEnvironment)github.com/ChristopherHX/act@aec5ff7a02,github.com/ChristopherHX/act@dd3cfce42d)@Michael-Tang-2009 commented on GitHub (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 commented on GitHub (Feb 23, 2024):
Is there a way to run test actions on the Windows platform from WSL2 (running under Windows)?
@wangito33 commented on GitHub (Apr 3, 2024):
Job cancelling doesn't work on Windows?
@nukeop commented on GitHub (Jun 15, 2024):
Any way to run a windows image in a docker? Codespaces don't support Windows either and I can't think of any lightweight option to run a build on Windows, other than a full VM.
@cw-cdz commented on GitHub (Nov 19, 2024):
https://github.com/dockur/windows
@Dragon1573 commented on GitHub (Dec 3, 2024):
Is
actsupport using this image as a Windows runtime? Should I switch my Docker Desktop for Windows to "Windows container" mode?I just don't want to install everything necessary on my physical Windows OS, I want to isolate the test environment with my host. Is Hyper-V (or other VMs) the only way to resolve it?