Compare commits

..
Author SHA1 Message Date
Hanif Koh c0822cfaf5 Free macOS Disk Space Only When the Build Might Not Fit 2026-10-11 18:19:23 +08:00
7 changed files with 7 additions and 12 deletions
+7
View File
@@ -179,6 +179,13 @@ jobs:
if: runner.os == 'macOS' && !inputs.macos-combine-only && !vars.SELF_HOSTED
run: |
df -hI /
# Deleting the unused Xcodes takes minutes, so only do it when the
# build might not fit. A cold build uses under 4 GiB after this step.
avail_gib=$(df -g / | awk 'NR == 2 { print $4 }')
if [ "$avail_gib" -ge 15 ]; then
echo "$avail_gib GiB free, enough for the build"
exit 0
fi
# Keep only the selected Xcode
xcode=$(basename "$(cd "$(xcode-select -p)/../.." && pwd -P)")
sudo find /Applications -maxdepth 1 -type d -name "Xcode_*.app" ! -name "$xcode" -exec rm -rf {} +
-2
View File
@@ -1,5 +1,3 @@
#pragma once
#include <string>
namespace Slic3r {
-2
View File
@@ -1,5 +1,3 @@
#pragma once
// paper: https://people.eecs.berkeley.edu/~jrs/meshpapers/GarlandHeckbert2.pdf
// sum up: https://users.csc.calpoly.edu/~zwood/teaching/csc570/final06/jseeba/
// inspiration: https://github.com/sp4cerat/Fast-Quadric-Mesh-Simplification
-2
View File
@@ -1,5 +1,3 @@
#pragma once
#import <Cocoa/Cocoa.h>
@interface OtherInstanceMessageHandlerMac : NSObject
-2
View File
@@ -1,5 +1,3 @@
#pragma once
#include "slic3r/GUI/wxExtensions.hpp"
#include <map>
#include <cstdint>
-2
View File
@@ -1,5 +1,3 @@
#pragma once
#import <Cocoa/Cocoa.h>
@interface RemovableDriveManagerMM : NSObject
-2
View File
@@ -1,5 +1,3 @@
#pragma once
#include <wx/textctrl.h>
#include <wx/colour.h>