Skip to content

Commit cde2311

Browse files
Free up space before installing dependencies
1 parent bbe3557 commit cde2311

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

.github/workflows/jarbuild.yml

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,35 @@ jobs:
216216
./bootstrap-vcpkg.sh
217217
echo "VCPKG_ROOT=${PWD}/arrow/vcpkg" >> ${GITHUB_ENV}
218218
echo "${PWD}/arrow/vcpkg" >> ${GITHUB_PATH}
219+
- name: Clean up disk space
220+
run: |
221+
echo "=== Free disk space BEFORE cleanup ==="
222+
df -h /
223+
224+
echo ""
225+
echo "=== Removing Xcode simulators ==="
226+
sudo rm -rf /Library/Developer/CoreSimulator/Caches || :
227+
echo "Removed /Library/Developer/CoreSimulator/Caches"
228+
229+
echo ""
230+
echo "=== Removing user simulator data ==="
231+
rm -rf ~/Library/Developer/CoreSimulator || :
232+
echo "Removed ~/Library/Developer/CoreSimulator"
233+
234+
echo ""
235+
echo "=== Removing temporary files ==="
236+
rm -rf /var/tmp/* || :
237+
echo "Removed /var/tmp/*"
238+
239+
echo ""
240+
echo "=== Free disk space AFTER cleanup ==="
241+
df -h /
219242
- name: Install dependencies
220243
run: |
244+
echo "=== Free disk space at start of dependency installation ==="
245+
df -h /
246+
247+
echo ""
221248
# Ensure updating python@XXX with the "--overwrite" option.
222249
# If python@XXX is updated without "--overwrite", it causes
223250
# a conflict error. Because Python 3 installed not by
@@ -264,14 +291,24 @@ jobs:
264291
# bundled Protobuf.
265292
brew uninstall protobuf
266293
294+
echo ""
295+
echo "=== Free disk space before LLVM build ==="
296+
df -h /
297+
298+
echo ""
267299
# Use vcpkg to install LLVM.
268300
vcpkg install \
269301
--clean-after-build \
270302
--x-install-root=${VCPKG_ROOT}/installed \
271303
--x-manifest-root=arrow/ci/vcpkg \
272304
--overlay-ports=arrow/ci/vcpkg/overlay/llvm/ \
273305
--x-feature=gandiva-llvm
274-
306+
307+
echo ""
308+
echo "=== Free disk space after LLVM build ==="
309+
df -h /
310+
311+
echo ""
275312
brew bundle --file=Brewfile
276313
- name: Prepare ccache
277314
run: |
@@ -284,10 +321,18 @@ jobs:
284321
restore-keys: jni-macos-${{ matrix.platform.arch }}-
285322
- name: Build
286323
run: |
324+
echo "=== Free disk space at start of build ==="
325+
df -h /
326+
327+
echo ""
287328
set -e
288329
# make brew Java available to CMake
289330
export JAVA_HOME=$(brew --prefix openjdk@11)/libexec/openjdk.jdk/Contents/Home
290331
ci/scripts/jni_macos_build.sh . arrow build jni
332+
333+
echo ""
334+
echo "=== Free disk space at end of build ==="
335+
df -h /
291336
- name: Compress into single artifact to keep directory structure
292337
run: tar -cvzf jni-macos-${{ matrix.platform.arch }}.tar.gz jni/
293338
- name: Upload artifacts

0 commit comments

Comments
 (0)