Skip to content

Commit 4fe9501

Browse files
committed
fix
1 parent 64828b7 commit 4fe9501

File tree

2 files changed

+43
-17
lines changed

2 files changed

+43
-17
lines changed

.github/workflows/jarbuild.yml

Lines changed: 43 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# under the License.
1717

1818
name: JarBuild
19-
on:
19+
on:
2020
workflow_dispatch:
2121
inputs:
2222
arrow_branch:
@@ -165,10 +165,9 @@ jobs:
165165
fail-fast: false
166166
matrix:
167167
platform:
168-
- { runs_on: macos-15-intel, arch: "x86_64"}
169168
- { runs_on: macos-15, arch: "aarch_64" }
170169
env:
171-
MACOSX_DEPLOYMENT_TARGET: "14.0"
170+
MACOSX_DEPLOYMENT_TARGET: "15.0"
172171
steps:
173172
- name: Download source archive
174173
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
@@ -216,14 +215,30 @@ jobs:
216215
./bootstrap-vcpkg.sh
217216
echo "VCPKG_ROOT=${PWD}/arrow/vcpkg" >> ${GITHUB_ENV}
218217
echo "${PWD}/arrow/vcpkg" >> ${GITHUB_PATH}
219-
- name: Remove logs and unused SDKs
218+
- name: Clean up disk space
220219
run: |
221-
sudo rm -rf /usr/local/share/vcpkg/buildtrees
222-
sudo rm -rf /Applications/Xcode*/Contents/Developer/Platforms/iPhone*
223-
sudo rm -rf /Library/Developer/CoreSimulator/Caches/*
224-
df -h
220+
echo "=== Free disk space before cleanup ==="
221+
df -h /
222+
223+
echo ""
224+
echo "=== Removing Xcode simulators ==="
225+
sudo rm -rf /Library/Developer/CoreSimulator/Caches || :
226+
echo "Removed /Library/Developer/CoreSimulator/Caches"
227+
228+
echo ""
229+
echo "=== Removing user simulator data ==="
230+
rm -rf ~/Library/Developer/CoreSimulator || :
231+
echo "Removed ~/Library/Developer/CoreSimulator"
232+
233+
echo ""
234+
echo "=== Free disk space after cleanup ==="
235+
df -h /
225236
- name: Install dependencies
226237
run: |
238+
echo "=== Free disk space at start of dependency installation ==="
239+
df -h /
240+
241+
echo ""
227242
# Ensure updating python@XXX with the "--overwrite" option.
228243
# If python@XXX is updated without "--overwrite", it causes
229244
# a conflict error. Because Python 3 installed not by
@@ -270,14 +285,24 @@ jobs:
270285
# bundled Protobuf.
271286
brew uninstall protobuf
272287
288+
echo ""
289+
echo "=== Free disk space before LLVM build ==="
290+
df -h /
291+
292+
echo ""
273293
# Use vcpkg to install LLVM.
274294
vcpkg install \
275295
--clean-after-build \
276296
--x-install-root=${VCPKG_ROOT}/installed \
277297
--x-manifest-root=arrow/ci/vcpkg \
278298
--overlay-ports=arrow/ci/vcpkg/overlay/llvm/ \
279299
--x-feature=gandiva-llvm
280-
300+
301+
echo ""
302+
echo "=== Free disk space after LLVM build ==="
303+
df -h /
304+
305+
echo ""
281306
brew bundle --file=Brewfile
282307
- name: Prepare ccache
283308
run: |
@@ -290,10 +315,18 @@ jobs:
290315
restore-keys: jni-macos-${{ matrix.platform.arch }}-
291316
- name: Build
292317
run: |
318+
echo "=== Free disk space at start of build ==="
319+
df -h /
320+
321+
echo ""
293322
set -e
294323
# make brew Java available to CMake
295324
export JAVA_HOME=$(brew --prefix openjdk@11)/libexec/openjdk.jdk/Contents/Home
296325
ci/scripts/jni_macos_build.sh . arrow build jni
326+
327+
echo ""
328+
echo "=== Free disk space at end of build ==="
329+
df -h /
297330
- name: Compress into single artifact to keep directory structure
298331
run: tar -cvzf jni-macos-${{ matrix.platform.arch }}.tar.gz jni/
299332
- name: Upload artifacts
@@ -318,7 +351,6 @@ jobs:
318351
tar -xf apache-arrow-java-*.tar.gz --strip-components=1
319352
tar -xvzf jni-linux-x86_64.tar.gz
320353
tar -xvzf jni-linux-aarch_64.tar.gz
321-
tar -xvzf jni-macos-x86_64.tar.gz
322354
tar -xvzf jni-macos-aarch_64.tar.gz
323355
- name: Test that shared libraries exist
324356
run: |
@@ -334,11 +366,6 @@ jobs:
334366
test -f jni/arrow_orc_jni/aarch_64/libarrow_orc_jni.so
335367
test -f jni/gandiva_jni/aarch_64/libgandiva_jni.so
336368
337-
test -f jni/arrow_cdata_jni/x86_64/libarrow_cdata_jni.dylib
338-
test -f jni/arrow_dataset_jni/x86_64/libarrow_dataset_jni.dylib
339-
test -f jni/arrow_orc_jni/x86_64/libarrow_orc_jni.dylib
340-
test -f jni/gandiva_jni/x86_64/libgandiva_jni.dylib
341-
342369
test -f jni/arrow_cdata_jni/aarch_64/libarrow_cdata_jni.dylib
343370
test -f jni/arrow_dataset_jni/aarch_64/libarrow_dataset_jni.dylib
344371
test -f jni/arrow_orc_jni/aarch_64/libarrow_orc_jni.dylib
@@ -484,4 +511,4 @@ jobs:
484511
$artifact
485512
done
486513
env:
487-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
514+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/rc.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,6 @@ jobs:
380380
tar -xf apache-arrow-java-*.tar.gz --strip-components=1
381381
tar -xvzf jni-linux-x86_64.tar.gz
382382
tar -xvzf jni-linux-aarch_64.tar.gz
383-
tar -xvzf jni-macos-x86_64.tar.gz
384383
tar -xvzf jni-macos-aarch_64.tar.gz
385384
tar -xvzf jni-windows-x86_64.tar.gz
386385
- name: Test that shared libraries exist

0 commit comments

Comments
 (0)