Trigger Crossbow build #194
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
name: Trigger Crossbow build | |
on: | |
workflow_dispatch: | |
inputs: | |
arrow_branch: | |
description: 'Arrow branch to build' | |
required: true | |
arrow_repo: | |
description: 'Arrow repository' | |
type: choice | |
required: true | |
default: https://github.com/dremio/arrow.git | |
options: | |
- https://github.com/dremio/arrow.git | |
- https://github.com/Vijeth-test/arrow.git | |
- https://github.com/lriggs/arrow.git | |
- https://github.com/DenisTarasyuk/arrow.git | |
- https://github.com/stevelorddremio/arrow.git | |
env: | |
CROSSBOW_GITHUB_TOKEN: ${{ secrets.CROSSBOW_GITHUB_TOKEN }} | |
ARCHERY_DEFAULT_BRANCH: 'master' | |
jobs: | |
trigger-crossbow: | |
name: Trigger Crossbow | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: 'master' | |
fetch-depth: 0 | |
- name: Install Conda | |
run: | | |
set -e | |
echo "" | |
echo "Installing Miniconda." | |
MINICONDA_URL="https://repo.continuum.io/miniconda" | |
MINICONDA_FILE="Miniconda3-py39_23.11.0-2-Linux-x86_64.sh" | |
curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}" | |
bash $MINICONDA_FILE -b | |
- name: Configuring Conda | |
run: | | |
set -e | |
echo "" | |
echo "Configuring conda." | |
source /home/runner/miniconda3/bin/activate root | |
conda config --remove channels defaults | |
conda config --add channels defaults | |
conda config --add channels conda-forge | |
conda config --set show_channel_urls true | |
- name: Install packages | |
run: | | |
set -e | |
source /home/runner/miniconda3/bin/activate root | |
conda install -y \ | |
click \ | |
github3.py \ | |
jinja2 \ | |
jira \ | |
pygit2=1.6.0 \ | |
ruamel.yaml \ | |
setuptools_scm \ | |
toolz | |
- name: Run Crossbow script | |
run: | | |
set -e | |
pushd .. | |
source /home/runner/miniconda3/bin/activate root | |
git clone -b '${{ github.event.inputs.arrow_branch }}' '${{ github.event.inputs.arrow_repo }}' | |
pip install -e arrow/dev/archery[crossbow] | |
echo GITHUB_WORKSPACE:$GITHUB_WORKSPACE | |
echo GITHUB_REPOSITORY: $GITHUB_REPOSITORY | |
cd arrow-build | |
echo pwd | |
pwd | |
archery crossbow --queue-path $GITHUB_WORKSPACE --queue-remote https://github.com/$GITHUB_REPOSITORY submit java-jars --job-prefix nightly |