Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Mar 30, 2023
1 parent 873fd22 commit d9c193f
Show file tree
Hide file tree
Showing 4 changed files with 154 additions and 61 deletions.
16 changes: 16 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

version: 2

jobs:
build:
machine: true

workflows:
version: 2
build:
jobs:
- build:
filters:
branches:
only:
- /.*-circle-.*/
129 changes: 129 additions & 0 deletions .github/workflows/crossbow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.


# NOTE: must set "Crossbow" as name to have the badge links working in the
# github comment reports!
name: Crossbow
on:
push:
branches:
- "*-github-*"


jobs:

build-cpp-ubuntu:
name: Build C++ Libs Ubuntu
runs-on: ubuntu-latest
steps:
- name: Checkout Arrow
uses: actions/checkout@v3
with:
fetch-depth: 1
path: arrow
repository: lriggs/arrow
ref: 8984a1dd6d6778b3f8e4c98230400b74af258583
submodules: recursive

- name: Set up Python
uses: actions/setup-python@v4
with:
cache: 'pip'
python-version: 3.8
- name: Install Archery
shell: bash
run: pip install -e arrow/dev/archery[all]

- name: Build C++ Libs
run: archery docker run 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/
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: ubuntu-shared-lib
path: arrow-shared-libs-linux.tar.gz

package-jars:
name: Build Jar Files
runs-on: macos-11
needs: [build-cpp-ubuntu]
steps:
- name: Checkout Arrow
uses: actions/checkout@v3
with:
fetch-depth: 0
path: arrow
repository: lriggs/arrow
ref: 8984a1dd6d6778b3f8e4c98230400b74af258583
submodules: recursive

- name: Download Linux C++ Libraries
uses: actions/download-artifact@v2
with:
name: ubuntu-shared-lib
- name: Descompress artifacts
run: |
tar -xvzf arrow-shared-libs-linux.tar.gz
- name: Copy custom dylibs
run: |
cp -L $GITHUB_WORKSPACE/arrow/cpp/x86_64/libarrow_cdata_jni.dylib arrow/java-dist/x86_64/
cp -L $GITHUB_WORKSPACE/arrow/cpp/x86_64/libarrow_dataset_jni.dylib arrow/java-dist/x86_64/
cp -L $GITHUB_WORKSPACE/arrow/cpp/x86_64/libarrow_orc_jni.dylib arrow/java-dist/x86_64/
cp -L $GITHUB_WORKSPACE/arrow/cpp/x86_64/libgandiva_jni.dylib arrow/java-dist/x86_64/
- name: Test that Shared Libraries Exist
run: |
set -x
test -f arrow/java-dist/x86_64/libarrow_cdata_jni.dylib
test -f arrow/java-dist/x86_64/libarrow_dataset_jni.dylib
test -f arrow/java-dist/x86_64/libgandiva_jni.dylib
test -f arrow/java-dist/x86_64/libarrow_orc_jni.dylib
test -f arrow/java-dist/x86_64/libarrow_cdata_jni.so
test -f arrow/java-dist/x86_64/libarrow_dataset_jni.so
test -f arrow/java-dist/x86_64/libarrow_orc_jni.so
test -f arrow/java-dist/x86_64/libgandiva_jni.so
- name: Build Bundled Jar
run: |
set -e
pushd arrow/java
mvn versions:set -DnewVersion=9.0.0.dev568
popd
arrow/ci/scripts/java_full_build.sh \
$GITHUB_WORKSPACE/arrow \
$GITHUB_WORKSPACE/arrow/java-dist
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Setup Crossbow
shell: bash
run: pip install -e arrow/dev/archery[crossbow-upload]
- name: Upload artifacts
shell: bash
run: |
archery crossbow \
--queue-path $(pwd) \
--queue-remote https://github.com/lriggs/arrow-build \
upload-artifacts \
--sha nightly-2-github-java-jars \
--tag nightly-2-github-java-jars \
"arrow/java-dist/*.jar" \
"arrow/java-dist/*.pom" \
"arrow/java-dist/*.zip"
env:
CROSSBOW_GITHUB_TOKEN: ${{ secrets.CROSSBOW_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
61 changes: 0 additions & 61 deletions .github/workflows/generate_jar.yaml

This file was deleted.

9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

branches:
only:
- master
- /.*-travis-.*/

os: linux
dist: trusty
language: generic

0 comments on commit d9c193f

Please sign in to comment.