Skip to content

Commit 3e0d9a1

Browse files
committed
Use rename_macos_dynamic_libraries
1 parent b875705 commit 3e0d9a1

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

dev/tasks/matlab/github.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -73,20 +73,8 @@ jobs:
7373
env:
7474
{{ macros.github_set_sccache_envvars()|indent(8) }}
7575
run: arrow/ci/scripts/matlab_build.sh $(pwd)/arrow
76-
- name: Change shared library dependency name
77-
# MATLAB's programmatic packaging interface does not properly
78-
# include symbolic link files in the package MLTBX - this is a
79-
# bug. As a temporary workaround, change the expected name of the
80-
# Arrow C++ library which libarrowproxy.dylib depends on.
81-
# For example, change libarrow.1500.dylib to libarrow.1500.0.0.dylib.
82-
run: |
83-
pushd arrow/matlab/install/arrow_matlab/+libmexclass/+proxy
84-
SYMLINK_ARROW_LIB="$(find . -name 'libarrow.*.dylib' -type l | xargs basename)"
85-
REGULAR_ARROW_LIB="$(echo libarrow.*.*.dylib)"
86-
echo "SYMLINK_ARROW_LIB = ${SYMLINK_ARROW_LIB}"
87-
echo "REGULAR_ARROW_LIB = ${REGULAR_ARROW_LIB}"
88-
install_name_tool -change @rpath/$SYMLINK_ARROW_LIB @rpath/$REGULAR_ARROW_LIB libarrowproxy.dylib
89-
popd
76+
- name: Update dylib names
77+
run: arrow/dev/tasks/matlab/rename_macos_dynamic_libraries.sh arrow/matlab/install/arrow_matlab/+libmexclass/+proxy x64
9078
- name: Compress into single artifact
9179
run: tar -cvzf matlab-arrow-macos.tar.gz arrow/matlab/install/arrow_matlab
9280
- name: Upload artifacts
@@ -111,7 +99,7 @@ jobs:
11199
{{ macros.github_set_sccache_envvars()|indent(8) }}
112100
run: arrow/ci/scripts/matlab_build.sh $(pwd)/arrow
113101
- name: Update dylib names
114-
run: arrow/dev/tasks/matlab/rename_macos_arm64_dylibs.sh arrow/matlab/install/arrow_matlab/+libmexclass/+proxy
102+
run: arrow/dev/tasks/matlab/rename_macos_dynamic_libraries.sh arrow/matlab/install/arrow_matlab/+libmexclass/+proxy arm64
115103
- name: Compress into single artifact
116104
run: tar -cvzf matlab-arrow-macos-arm64.tar.gz arrow/matlab/install/arrow_matlab
117105
- name: Upload artifacts

0 commit comments

Comments
 (0)