rok commented on code in PR #14472:
URL: https://github.com/apache/arrow/pull/14472#discussion_r1008043006


##########
dev/tasks/java-jars/github.yml:
##########
@@ -28,13 +28,21 @@ jobs:
       {{ macros.github_checkout_arrow()|indent }}
       {{ macros.github_install_archery()|indent }}
       - name: Build C++ libraries
+        env:
+        {{ macros.github_set_sccache_envvars()|indent(8) }}
         run: |
           archery docker run \
             -e ARROW_JAVA_BUILD=OFF \
             -e ARROW_JAVA_TEST=OFF \
             java-jni-manylinux-2014
       - name: Compress into single artifact to keep directory structure
-        run: tar -cvzf arrow-shared-libs-linux.tar.gz arrow/java-dist/
+        run: |
+          mkdir -p /tmp/arrow/java-dist/x86_64
+          cp arrow/java-dist/*.* /tmp/arrow/java-dist/x86_64/
+          pushd /tmp/
+          tar -cvzf arrow-shared-libs-linux.tar.gz arrow/java-dist/x86_64/
+          popd
+          mv /tmp/arrow-shared-libs-linux.tar.gz .

Review Comment:
   Good point!
   
   Linux returns `arm64` so I've added this:
   ```bash
   arch=$(arch)
   dist_dir=${3}/${arch//(aarch64|arm64)/aarch_64}
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to