Repository navigation
AZP/RELEASE: Add ARM release - Part #3 - #8896
Conversation
9fad3d1 to
8ea471e
Compare
|
|
||
| - template: jucx/jucx-build.yml | ||
| parameters: | ||
| name: amd64 # x86_64 |
|
|
||
| - template: jucx/jucx-build.yml | ||
| parameters: | ||
| name: aarch64 # ARM |
| @@ -0,0 +1,41 @@ | |||
| parameters: | |||
| name: | |||
There was a problem hiding this comment.
maybe this parameter should be called "arch" ?
| inputs: | ||
| pathToPublish: '$(Build.Repository.LocalPath)/bindings/java/resources' | ||
| artifactName: libjucx_${{ parameters.name }}.so | ||
| displayName: Midterm artifact push |
There was a problem hiding this comment.
Does the "interim artifact" sounds better?
As opposed to the final artifact.
|
seems release pipeline is not triggered for some reason.. |
d7a1f7c to
022bd53
Compare
|
Review build output:
|
b30aac4 to
41f3eb0
Compare
|
Looks better now: @yosefe Thank you very much for the comprehensive review. |
| set -x | ||
| jar tf jucx*.jar |
There was a problem hiding this comment.
can we do it also after the build steps?
0ba6258 to
1cd22b3
Compare
b0ded33 to
5815c41
Compare
|
@Al3xR01 seems libjucx.so is not present in the JAR file? |
That's the reason for the 'DNM' label. Looking into it. |
46962fb to
b7c6388
Compare
|
Tested the publish stage manually, as it's skipped on PR: Output: |
b02e8c9 to
0da6d8a
Compare
| $(JUCX_GENERATED_H_FILES): $(STAMP_FILE) | ||
|
|
||
| # Return CPU architecure in Java format | ||
| arch = @host_cpu@ |
|
|
||
| # Return CPU architecure in Java format | ||
| arch = @host_cpu@ | ||
| arch = $(if $(filter x86_64,$(host_cpu)),amd64,$(host_cpu)) |
|
|
||
| # Compile Java source code and pack to jar | ||
| rename_libjucx: | ||
| cp .libs/libjucx.so .libs/libjucx_$(arch).so |
There was a problem hiding this comment.
can we use some template var instead of ".libs"?
| cp .libs/libjucx.so .libs/libjucx_$(arch).so | ||
|
|
||
| $(jarfile): libjucx.la | ||
| $(MAKE) rename_libjucx |
There was a problem hiding this comment.
seems weird to invoke make command like this,
it should be like this:
arch = ...
libjucx = $(objdir)/libjucx_$(arch).so
...
$(libjucx): libjucx.la
cp $(objdir)/libjucx.so $(libjucx)
$(jarfile): $(libjucx)
$(MVNCMD) package -DskipTests| target: publish-release | ||
| ${{ if eq(variables['Build.Reason'], 'PullRequest') }}: | ||
| target: package |
There was a problem hiding this comment.
why needed - we also check Build.Reason as a condition for "Publish JUCX jar to maven central" task
|
|
||
| # Add multi-platform support (CI only) | ||
| repack-jar: $(jarfile) | ||
| rm -rf $(java_build_dir)/repack_dir |
f4c0e4d to
591f71c
Compare
4683b4a to
3d4f2e8
Compare
3d4f2e8 to
c2f108f
Compare
|
@Alexey-Rivkin pls fix the commit title |
c2f108f to
226fc81
Compare
|
@Alexey-Rivkin can you pls port to v1.15.x branch? |
What
Build and release ARM-based artifacts.
Part 3: Build JUCX on ARM
Why ?
#8762