forked from dremio/arrow
-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (64 loc) · 2.04 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Trigger Crossbow build
on:
workflow_dispatch:
inputs:
arrow_branch:
description: 'Arrow branch to build'
required: true
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_22.11.1-1-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.5.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 }}' https://github.com/dremio/arrow.git
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