This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
unknown
committed
Jan 14, 2021
0 parents
commit 6f4b6b5
Showing
3 changed files
with
130 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
# 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: | ||
package: | ||
name: Package | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Set up Ruby | ||
uses: actions/setup-ruby@v1 | ||
- name: Checkout Arrow | ||
run: | | ||
git clone --no-checkout https://github.com/apache/arrow arrow | ||
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: Free Up Disk Space | ||
shell: bash | ||
run: arrow/ci/scripts/util_cleanup.sh | ||
- name: Build | ||
run: | | ||
set -e | ||
pushd arrow/dev/tasks/linux-packages | ||
rake version:update | ||
rake docker:pull || : | ||
rake BUILD_DIR=build apt:build | ||
sudo rm -rf */*/build | ||
popd | ||
env: | ||
APT_TARGETS: ubuntu-groovy | ||
ARROW_VERSION: 2.1.0.dev612 | ||
REPO: ${{ secrets.REPO }} | ||
YUM_TARGETS: ubuntu-groovy | ||
- name: Docker Push | ||
if: success() | ||
continue-on-error: true | ||
shell: bash | ||
run: | | ||
pushd arrow/dev/tasks/linux-packages | ||
docker login -u "${{ secrets.DOCKERHUB_USER }}" \ | ||
-p "${{ secrets.DOCKERHUB_TOKEN }}" | ||
rake docker:push | ||
popd | ||
env: | ||
APT_TARGETS: ubuntu-groovy | ||
REPO: ${{ secrets.REPO }} | ||
YUM_TARGETS: ubuntu-groovy | ||
# Using GitHub release tries to find a common ancestor between the | ||
# currently pushed tag and the latest tag of the GitHub repository | ||
# (don't know why). | ||
# The tag upload took 43 minutes because of this scan, so use an | ||
# alternative upload script. | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Set up Crossbow | ||
run: | | ||
pip install \ | ||
click \ | ||
github3.py \ | ||
jinja2 \ | ||
jira \ | ||
pygit2 \ | ||
ruamel.yaml \ | ||
setuptools_scm \ | ||
toolz | ||
- name: Upload artifacts | ||
run: | | ||
python arrow/dev/tasks/crossbow.py \ | ||
--queue-path . \ | ||
--queue-remote https://github.com/ursa-labs/crossbow \ | ||
upload-artifacts \ | ||
--pattern "**/*.ddeb" \ | ||
--pattern "**/*.deb" \ | ||
--pattern "**/*.debian.tar.xz" \ | ||
--pattern "**/*.dsc" \ | ||
--pattern "**/*.orig.tar.gz" \ | ||
--sha nightly-2021-01-14-0-github-ubuntu-groovy-amd64 \ | ||
--tag nightly-2021-01-14-0-github-ubuntu-groovy-amd64 | ||
env: | ||
CROSSBOW_GITHUB_TOKEN: ${{ secrets.CROSSBOW_GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
branches: | ||
only: | ||
- master | ||
- /.*-travis-.*/ | ||
|
||
os: linux | ||
dist: trusty | ||
language: generic |