From a97a279d4fb5ebbb823723d69cbc6a083861088a Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 14 Jan 2021 06:36:51 +0000 Subject: [PATCH] --- .circleci/config.yml | 16 ++++++ .github/workflows/crossbow.yml | 92 ++++++++++++++++++++++++++++++++++ .travis.yml | 9 ++++ 3 files changed, 117 insertions(+) create mode 100644 .circleci/config.yml create mode 100644 .github/workflows/crossbow.yml create mode 100644 .travis.yml diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000000..6c155ea986 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,16 @@ + +version: 2 + +jobs: + build: + machine: true + +workflows: + version: 2 + build: + jobs: + - build: + filters: + branches: + only: + - /.*-circle-.*/ diff --git a/.github/workflows/crossbow.yml b/.github/workflows/crossbow.yml new file mode 100644 index 0000000000..45112d2918 --- /dev/null +++ b/.github/workflows/crossbow.yml @@ -0,0 +1,92 @@ +# 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: + name: "Build wheel for Windows" + runs-on: windows-2016 + env: + ARCH: "x64" + GENERATOR: Visual Studio 15 2017 + PYTHON_VERSION: "3.8" + PYARROW_VERSION: 2.1.0.dev612 + steps: + - name: Checkout Arrow + shell: bash + run: | + git clone --no-checkout https://github.com/apache/arrow arrow + git -C arrow config core.symlinks true + git -C arrow fetch -t https://github.com/apache/arrow master + git -C arrow checkout FETCH_HEAD + git -C arrow submodule update --init --recursive + - name: Fetch Submodules and Tags + shell: bash + run: cd arrow && ci/scripts/util_checkout.sh + - uses: actions/setup-python@v2 + with: + python-version: "3.8" + - name: Set up Miniconda + shell: bash + run: | + echo "c:\\Miniconda\\condabin" >> $GITHUB_PATH + - name: Build wheel + shell: bash + run: | + arrow/dev/tasks/python-wheels/win-build.bat + - name: Prepare artifacts + # the artifacts must be uploaded from a directory relative to the build root + shell: bash + run: | + mv arrow/python/dist/ wheels/ + + - name: Upload to gemfury + shell: bash + run: | + conda.bat install -y curl + WHEEL_PATH=$(echo wheels/*.whl) + curl.exe \ + -F "package=@${WHEEL_PATH}" \ + "https://${CROSSBOW_GEMFURY_TOKEN}@push.fury.io/${CROSSBOW_GEMFURY_ORG}/" + env: + CROSSBOW_GEMFURY_ORG: ${{ secrets.CROSSBOW_GEMFURY_ORG }} + CROSSBOW_GEMFURY_TOKEN: ${{ secrets.CROSSBOW_GEMFURY_TOKEN }} + + - name: Set up Crossbow + shell: bash + run: | + pip install --requirement arrow/dev/tasks/requirements-crossbow.txt + - name: Upload artifacts + shell: bash + run: | + python arrow/dev/tasks/crossbow.py \ + --queue-path . \ + --queue-remote https://github.com/ursa-labs/crossbow \ + upload-artifacts \ + --pattern "wheels/*.whl" \ + --sha nightly-2021-01-14-0-github-wheel-win-cp38 \ + --tag nightly-2021-01-14-0-github-wheel-win-cp38 + env: + CROSSBOW_GITHUB_TOKEN: ${{ secrets.CROSSBOW_GITHUB_TOKEN }} \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..f4d0062a08 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ + +branches: + only: + - master + - /.*-travis-.*/ + +os: linux +dist: trusty +language: generic