Skip to content

Commit 4efdff9

Browse files
authored
Merge pull request #9550 from Alexey-Rivkin/topic/jucx_arm-v1.16.x
AZP: Fix JUCX with ARM build-v1.16.x
2 parents 02432d3 + 2d2d8dd commit 4efdff9

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

bindings/java/src/main/native/Makefile.am

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,22 +103,30 @@ set-version:
103103
repack-jar: $(jarfile)
104104
$(RM) -r $(java_build_dir)/repack_dir
105105
unzip -o $(jarfile) -d $(java_build_dir)/repack_dir
106-
\cp $(topdir)/libjucx_*.so/libjucx_*.so $(java_build_dir)/repack_dir
106+
\cp -v $(topdir)/libjucx_*.so/libjucx_*.so $(topdir)/bindings/java/resources
107+
\cp -v $(topdir)/libjucx_*.so/libjucx_*.so $(java_build_dir)/repack_dir
107108
jar -cf $(jarfile) -C $(java_build_dir)/repack_dir .
108109
jar tf $(jarfile)
109110

110111
multi-arch:
111112
@make set-version JUCX_VERSION=${JUCX_VERSION}
112113
@make repack-jar
113114

115+
check-jar:
116+
@test $(shell jar tf $(jarfile) | grep -q libjucx_amd64.so)
117+
@test $(shell jar tf $(jarfile) | grep -q libjucx_aarch64.so)
118+
114119
# Publish JUCX jar to maven central
115120
publish-snapshot:
116121
@make set-version JUCX_VERSION=@VERSION@-SNAPSHOT
122+
@make repack-jar
123+
@make check-jar
117124
@make publish
118125

119126
publish-release:
120127
@make set-version JUCX_VERSION=${JUCX_VERSION}
121128
@make repack-jar
129+
@make check-jar
122130
@make publish
123131

124132
publish:

buildlib/jucx/jucx-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
displayName: Build ucx
4141
4242
- bash: |
43+
set -exE
4344
source buildlib/az-helpers.sh
4445
az_init_modules
4546
az_module_load dev/mvn
@@ -77,6 +78,7 @@ jobs:
7778
name: publicKey
7879

7980
- bash: |
81+
set -exE
8082
source buildlib/az-helpers.sh
8183
az_init_modules
8284
az_module_load dev/mvn

0 commit comments

Comments
 (0)