Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 24 additions & 6 deletions .github/workflows/ci_macos_arm64_clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,32 @@ jobs:
python-version: "3.11"
cache: "pip"
- name: "Reclaim disk space"
# GitHub-hosted runners have 14GB of disk space -- reclaim some by removing SDKs
# we don't need.
run: |
echo "Free space before"
df -h
echo "=== Free space before ==="
df -h /
echo "=== Removing unused SDKs and tools ==="
# Android SDK (~13Gi)
sudo rm -rf /Users/runner/Library/Android/sdk
echo "Free space after"
df -h
# iOS simulators (~13Gi)
sudo rm -rf /Library/Developer/CoreSimulator/Volumes/iOS_*
# .NET SDK (~3Gi)
sudo rm -rf /usr/local/share/dotnet
# Haskell / GHC (~3Gi)
sudo rm -rf /opt/ghc
# Cached tool archives (~2Gi)
sudo rm -rf /opt/hostedtoolcache
# Old Xcode versions if present (~10Gi+ each).
# Resolve the symlink since /Applications/Xcode.app is typically a
# symlink to one of the versioned Xcode_*.app directories.
ACTIVE_XCODE="$(readlink -f "$(xcode-select -p)/../..")"
for xcode in /Applications/Xcode_*.app; do
if [ -d "$xcode" ] && [ "$(readlink -f "$xcode")" != "$ACTIVE_XCODE" ]; then
echo "Removing unused Xcode: $xcode"
sudo rm -rf "$xcode"
fi
done
echo "=== Free space after ==="
df -h /
- name: "Installing Python packages"
run: pip install -r runtime/bindings/python/iree/runtime/build_requirements.txt
- name: "Installing requirements"
Expand Down
Loading