Deploy Windmill worker on Windows platform
Is it possible to run the Windmill worker on the Windows platform as a native binary?
I would like to run automation scripts against Hyper-V, using the PowerShell module. However, the Hyper-V module will only run on the Windows platform, not on Linux or MacOS.
It would be nice to register the Windmill worker as a service, either using the Windows service manager, or by running it under Task Scheduler.
6 Replies
It can definitely be done, you just need to compile the binary from sources
cargo build
might be all you need
once I start doing powershell (which I can probably do by next week) we could iterate with you on how to package this best for your use-case
it's not a lot of work to add binaries target to our CII'll give
cargo build
a try. I'm trying to learn Rust anyway
I would recommend to distribute the pre-compiled Windmill worker on Windows using the Scoop package manager. It's a command line package manager similar to Homebrew on MacOS or apt
on Linux. I use it to install all my dev tools.
https://scoop.sh/
https://github.com/ScoopInstaller/Scoop👍
Trying to get Windmill worker compiled and running on Windows:
1. Created Windows 11 VM on Hyper-V
1. Installed Scoop package manager
1. Install
rustup
with scoop install rustup
1. Install Microsoft C++ Build Tools
1. PowerShell: mkdir \git; cd \git
1. git clone https://github.com/windmill-labs/windmill/
1. cd .\windmill\backend\windmill-worker\
1. cargo build
Build errors: see attachedFiled bug here for indexing on search engines: https://github.com/windmill-labs/windmill/issues/1836
GitHub
bug: Error while compiling Windmill worker on Windows platform · Is...
Describe the bug When I try to compile the Windmill worker on the Windows 11 platform, I am receiving an error. Compiling gosyn v0.2.3 Compiling deno_media_type v0.1.0 error: error communicating wi...