Skip to content

Commit

Permalink
Enabled Arm build
Browse files Browse the repository at this point in the history
  • Loading branch information
DenisTarasyuk committed Dec 21, 2023
1 parent 6c9f66a commit f05f06d
Showing 1 changed file with 8 additions and 45 deletions.
53 changes: 8 additions & 45 deletions dev/tasks/java-jars/github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
archery_arch: "amd64"
archery_arch_alias: "x86_64"
archery_arch_short: "amd64"
- runs_on: ["self-hosted", "Linux", "arm64"]
- runs_on: ["buildjet-4vcpu-ubuntu-2204-arm"]
arch: "aarch_64"
archery_arch: "arm64v8"
archery_arch_alias: "aarch64"
Expand All @@ -53,6 +53,12 @@ jobs:
df -h
sudo rm -rf /opt/hostedtoolcache/CodeQL || :
df -h
- name: Set Swap Space
uses: thejerrybao/setup-swap-space@v1
with:
swap-space-path: /swapfile
swap-size-gb: 16
remove-existing-swap-files: false
- name: Build C++ libraries
env:
{{ macros.github_set_sccache_envvars()|indent(8) }}
Expand Down Expand Up @@ -153,47 +159,12 @@ jobs:
name: macos-shared-lib-{{ arch }}
path: arrow-shared-libs-macos-{{ arch }}.tar.gz

build-cpp-windows:
name: Build C++ libraries Windows
runs-on: windows-2019
steps:
{{ macros.github_checkout_arrow()|indent }}
- name: Set up Java
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
- name: Download Timezone Database
shell: bash
run: arrow/ci/scripts/download_tz_database.sh
- name: Install sccache
shell: bash
run: arrow/ci/scripts/install_sccache.sh pc-windows-msvc $(pwd)/sccache
- name: Build C++ libraries
shell: cmd
env:
{{ macros.github_set_sccache_envvars()|indent(8) }}
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
REM For ORC
set TZDIR=/c/msys64/usr/share/zoneinfo
bash -c "arrow/ci/scripts/java_jni_windows_build.sh $(pwd)/arrow $(pwd)/arrow/cpp-build $(pwd)/arrow/java-dist"
- name: Compress into single artifact to keep directory structure
shell: bash
run: tar -cvzf arrow-shared-libs-windows.tar.gz arrow/java-dist/
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: windows-shared-lib
path: arrow-shared-libs-windows.tar.gz

package-jars:
name: Build jar files
runs-on: macos-latest
needs:
- build-cpp-ubuntu
- build-cpp-macos
- build-cpp-windows
steps:
{{ macros.github_checkout_arrow(fetch_depth=0)|indent }}
- name: Download Libraries
Expand All @@ -206,7 +177,6 @@ jobs:
tar -xvzf arrow-shared-libs-linux-x86_64.tar.gz
tar -xvzf arrow-shared-libs-linux-aarch_64.tar.gz
tar -xvzf arrow-shared-libs-macos-x86_64.tar.gz
tar -xvzf arrow-shared-libs-windows.tar.gz
- name: Test that shared libraries exist
run: |
set -x
Expand All @@ -226,9 +196,6 @@ jobs:
test -f arrow/java-dist/x86_64/libarrow_orc_jni.dylib
test -f arrow/java-dist/x86_64/libgandiva_jni.dylib
test -f arrow/java-dist/x86_64/arrow_cdata_jni.dll
test -f arrow/java-dist/x86_64/arrow_dataset_jni.dll
test -f arrow/java-dist/x86_64/arrow_orc_jni.dll
- name: Build bundled jar
run: |
set -e
Expand All @@ -238,8 +205,4 @@ jobs:
arrow/ci/scripts/java_full_build.sh \
$GITHUB_WORKSPACE/arrow \
$GITHUB_WORKSPACE/arrow/java-dist
{{ macros.github_upload_releases(["arrow/java-dist/*.jar",
"arrow/java-dist/*.json",
"arrow/java-dist/*.pom",
"arrow/java-dist/*.xml",
"arrow/java-dist/*.zip"])|indent }}
{{ macros.github_upload_releases(["arrow/java-dist/arrow-gandiva*.jar"])|indent }}

0 comments on commit f05f06d

Please sign in to comment.