Replies: 1 comment 1 reply
-
Actually, it is very long ago, that I used my action myself. :-D But yes, it is a known fact, that for WSLv2 the disk-access from WSL to Windows and Windows to WSL is muuuch slower than on WSLv1 as on WSLv1 it was more or less a compatibility API similar to Cygwin, while with WSLv2 Windows and the WSL distribution are separate VMs running on the same Hypervisor and thus the file transfer is significantly slower, while all other actions are usually much faster.
Did you try to specify an absolute path pointing to a WSL location?
Well, those symlink hacks are not too relevant, are they? What problems did you have with what was described in that article?
Are you sure?
Not configurable? o_O defaults:
run:
working-directory: \\wsl$\debian\root\my-project |
Beta Was this translation helpful? Give feedback.
-
While WSL2 sorts lots of problems and limitations we had with WSL1, it does introduce one huge problem: disk performance between linux and the host windows filesystem (/mnt/c) is extremely slow, like 10-100x slower.
As many of those using setup-wsl action might be using it to build their codebase directly under WSL instead of under Windows, they will be facing these issues:
C:\action-runner
Probably the solution for this problem would be to perform an rsync between the checked out source and linux user home directory, run all wsl tasks and rsync back to workspace before running other actions.
One major problem that I have is that by default all
run
actions run insideGITHUB_WORKSPACE
which is not configurable. So even if I copy the checkout inside linux user home directory, I need to find a way to automatically CD to this folder for each action. I guess that would require changing theshell:
a custom one? Would something like `"wsl-bash cd ~/code && {0}" work?Any ideas on how to tackle these?
Beta Was this translation helpful? Give feedback.
All reactions