Skip to content

Commit c7dc94a

Browse files
Create main.yml
1 parent e635bbe commit c7dc94a

1 file changed

Lines changed: 65 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Trigger Crossbow build
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
arrow_branch:
7+
description: 'Arrow branch to build'
8+
required: true
9+
env:
10+
CROSSBOW_GITHUB_TOKEN: ${{ secrets.CROSSBOW_GITHUB_TOKEN }}
11+
ARCHERY_DEFAULT_BRANCH: 'master'
12+
jobs:
13+
trigger-crossbow:
14+
name: Trigger Crossbow
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v3
18+
with:
19+
ref: 'master'
20+
fetch-depth: 0
21+
- name: Install Conda
22+
run: |
23+
set -e
24+
echo ""
25+
echo "Installing Miniconda."
26+
MINICONDA_URL="https://repo.continuum.io/miniconda"
27+
MINICONDA_FILE="Miniconda3-py39_22.11.1-1-Linux-x86_64.sh"
28+
curl -L -O "${MINICONDA_URL}/${MINICONDA_FILE}"
29+
bash $MINICONDA_FILE -b
30+
- name: Configuring Conda
31+
run: |
32+
set -e
33+
echo ""
34+
echo "Configuring conda."
35+
source /home/runner/miniconda3/bin/activate root
36+
conda config --remove channels defaults
37+
conda config --add channels defaults
38+
conda config --add channels conda-forge
39+
conda config --set show_channel_urls true
40+
- name: Install packages
41+
run: |
42+
set -e
43+
source /home/runner/miniconda3/bin/activate root
44+
conda install -y \
45+
click \
46+
github3.py \
47+
jinja2 \
48+
jira \
49+
pygit2=1.5.0 \
50+
ruamel.yaml \
51+
setuptools_scm \
52+
toolz
53+
- name: Run Crossbow script
54+
run: |
55+
set -e
56+
pushd ..
57+
source /home/runner/miniconda3/bin/activate root
58+
git clone -b '${{ github.event.inputs.arrow_branch }}' https://github.com/dremio/arrow.git
59+
pip install -e arrow/dev/archery[crossbow]
60+
echo GITHUB_WORKSPACE:$GITHUB_WORKSPACE
61+
echo GITHUB_REPOSITORY: $GITHUB_REPOSITORY
62+
cd arrow-build
63+
echo pwd
64+
pwd
65+
archery crossbow --queue-path $GITHUB_WORKSPACE --queue-remote https://github.com/$GITHUB_REPOSITORY submit java-jars --job-prefix nightly

0 commit comments

Comments
 (0)