Free disk space on OSX


#1

Hi,

is it possible to request additional free disk space for the OSX build environment (e.g. via a special key in the circle.yml)? A additional mounted volume would totally be fine. My problem is that I’m compiling a rather big c/c++ project for a bunch of architectures and I’m constantly running out of disk space. I’d also like to utilize ccache for fast builds which requires even more disk space …

$ df -h
Filesystem      Size   Used  Avail Capacity  iused   ifree %iused  Mounted on
/dev/disk0s2    79Gi   65Gi   14Gi    83% 17083590 3678026   82%   /
devfs          175Ki  175Ki    0Bi   100%      606       0  100%   /dev
map -hosts       0Bi    0Bi    0Bi   100%        0       0  100%   /net
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home

This is what the machine looks like right after setup. 14gb sounds sufficient - but sadly not in my case :frowning:

Best regards, Michael


#2

I found a way to get some more air to breath: Simply remove all unnused Xcode versions :smiley:

circle.yml:

machine:
    xcode:
        version: 7.3

    post:
    # Ensure enough free disk space
    - rm -rf /Applications/Xcode-7.{0,1,2}.app /Applications/Xcode-*.app/Contents/Developer/Documentation
    - df -h 

Result:

$ df -h
Filesystem      Size   Used  Avail Capacity  iused   ifree %iused  Mounted on
/dev/disk0s2    79Gi   52Gi   26Gi    67% 13817526 6944090   67%   /
devfs          175Ki  175Ki    0Bi   100%      606       0  100%   /dev
map -hosts       0Bi    0Bi    0Bi   100%        0       0  100%   /net
map auto_home 0Bi 0Bi 0Bi 100% 0 0 100% /home

This got me 12 additional gigs of space to work with :sunglasses:


#3