jlumbroso / free-disk-space

:octocat:⚙️🗑️ A GitHub Action to free disk space on an Ubuntu runner.
MIT License
386 stars 72 forks source link

Could this also work on Windows? #29

Closed jparismorgan closed 3 months ago

jparismorgan commented 3 months ago

Hi there, thanks for a nice library! Wondering if you've taken a look at having this also work on Windows?

jparismorgan commented 3 months ago

Update: I checked and it seems on Windows and Mac there is actually a lot of empty space to start:

windows:

Run df -h
Filesystem            Size  Used Avail Use% Mounted on
C:/Program Files/Git  2[5](https://github.com/jparismorgan/local-chat/actions/runs/10360637039/job/28679465381#step:2:6)6G  169G   88G  66% /
D:                     75G  2.1G   73G   3% /d

macos-x86:

Run df -h
Filesystem       Size   Used  Avail Capacity iused      ifree %iused  Mounted on
/dev/disk1s5s1  300Gi  8.7Gi  154Gi     6%  356839 1616571320    0%   /
devfs           183Ki  183Ki    0Bi   100%     634          0  100%   /dev
/dev/disk1s2    300Gi  1.9Gi  154Gi     2%     906 1616571320    0%   /System/Volumes/Preboot
/dev/disk1s4    300Gi  1.0Mi  154Gi     1%       1 1616571320    0%   /System/Volumes/VM
/dev/disk1s6    300Gi  464Ki  154Gi     1%      20 1616571320    0%   /System/Volumes/Update
/dev/disk1s1    300Gi  134Gi  154Gi    47% 2721901 1616571320    0%   /System/Volumes/Data
map auto_home     0Bi    0Bi    0Bi   100%       0          0  100%   /System/Volumes/Data/home

Whereas on linux there is much less space:

Filesystem      Size  Used Avail Use% Mounted on
/dev/root        73G   59G   15G  81% /
devtmpfs        3.9G     0  3.9G   0% /dev
tmpfs           3.9G  4.0K  3.9G   1% /dev/shm
tmpfs           795M  1.1M  793M   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/loop0       92M   92M     0 100% /snap/lxd/29619
/dev/loop1       39M   39M     0 100% /snap/snapd/21759
/dev/loop2       64M   64M     0 100% /snap/core20/2318
/dev/sda15      105M  6.1M   99M   6% /boot/efi
tmpfs           794M     0  794M   0% /run/user/1001

So seems likely not worth changing.