Conversation
| # specific language governing permissions and limitations | ||
| # under the License. | ||
|
|
||
| FROM ghcr.io/mamba-org/micromamba:ubuntu24.04 |
There was a problem hiding this comment.
I'm new to the process so this question might be dumb. Do we only build JNI libraries for ubuntu?
There was a problem hiding this comment.
No, the resulting libraries shouldn't be tied to Ubuntu. But perhaps we should use an older system as a base to avoid potential glibc incompatibility
There was a problem hiding this comment.
In any case, this is for testing and not for building the actual binaries, though
There was a problem hiding this comment.
Thanks for the explanation! Let me investigate how the actual binaries (for different platforms) are built for a release.
.github/workflows/test.yml
Outdated
| jobs: | ||
| ubuntu: | ||
| name: AMD64 Ubuntu 22.04 JDK ${{ matrix.jdk }} Maven ${{ matrix.maven }} | ||
| name: ${{ matrix.name }} AMD64 Ubuntu 22.04 JDK ${{ matrix.jdk }} Maven ${{ matrix.maven }} |
There was a problem hiding this comment.
Can we use "Ubuntu 24.04" for conda-java-jni-cdata?
(Or we may want to use just "Ubuntu".)
ci/scripts/java_jni_build.sh
Outdated
| n_jobs=$(nproc) | ||
| ;; | ||
| Darwin) | ||
| n_jobs=$(sysctl -n hw.ncpu) |
There was a problem hiding this comment.
In general, hw.logicalcpu is better than hw.ncpu:
| n_jobs=$(sysctl -n hw.ncpu) | |
| n_jobs=$(sysctl -n hw.logicalcpu) |
hw.activecpu
The number of enabled logical processor cores in the SoC. This is an alias of hw.logicalcpu.
hw.ncpu
The number of logical processor cores in the SoC. This is an alias of hw.logicalcpu_max.
hw.logicalcpu
The number of enabled logical processor cores in the SoC. This is an alias of hw.activecpu.
hw.logicalcpu_max
The number of logical processor cores in the SoC. This is an alias of hw.ncpu.
hw.physicalcpu
The number of enabled physical processor cores in the SoC.
hw.physicalcpu_max
The number of physical processor cores in the SoC.
docker-compose.yml
Outdated
| # docker compose build java-jni-cdata | ||
| # docker compose run java-jni-cdata |
There was a problem hiding this comment.
| # docker compose build java-jni-cdata | |
| # docker compose run java-jni-cdata | |
| # docker compose build conda-java-jni-cdata | |
| # docker compose run conda-java-jni-cdata |
docker-compose.yml
Outdated
| /arrow-java/ci/scripts/java_build.sh /arrow-java /build && | ||
| /arrow-java/ci/scripts/java_test.sh /arrow-java /build" | ||
|
|
||
| conda-java-jni-cdata: |
There was a problem hiding this comment.
We may want to remove the -java part because this repository is only for the Java implementation.
|
Updated. |
.github/workflows/test.yml
Outdated
| maven: [3.9.9] | ||
| image: [java, conda-jni-cdata] | ||
| include: | ||
| - image: java |
There was a problem hiding this comment.
Can we rename this "java" too?
"ubuntu"? Because maven image uses Ubuntu.
There was a problem hiding this comment.
Updated, I also tweaked the CI job names a bit so that "Conda" is in the name.
Fixes #14.