cachix / install-nix-action

Installs Nix on GitHub Actions for the supported platforms: Linux and macOS.
Apache License 2.0
498 stars 78 forks source link

Run fails on Windows #176

Closed soywod closed 1 year ago

soywod commented 1 year ago

Looks like the action does not even start on a Windows machine:

Run cachix/install-nix-action@v20
Run D:\a\_actions\cachix\install-nix-action\v20/install-nix.sh
D:\a\_temp\9deaaf18-4fdd-4[6](https://github.com/soywod/comodoro/actions/runs/4700542825/jobs/8335371841#step:5:7)bb-8a67-a4fcdd4ad6ae.sh: line 1: D:a_actionscachixinstall-nix-actionv20/install-nix.sh: No such file or directory
Error: Process completed with exit code 127.

Full logs available here.

sandydoo commented 1 year ago

@soywod, Nix doesn't support Windows and neither does its installer. It can only be installed on Windows machines through WSL.

If you want to build Windows executables with Nix, you'll have to cross-compile from Linux.

soywod commented 1 year ago

If you want to build Windows executables with Nix, you'll have to cross-compile from Linux.

Understood, thank you for you quick reply!