@@ -26,20 +26,21 @@ jobs:
26
26
image : ubuntu-2004:202101-01
27
27
resource_class : arm.large
28
28
environment :
29
- TAG = << pipeline.git.tag >>
30
- TRIGGER_SOURCE = << pipeline.trigger_source >>
29
+ ENV_FILE : ci/deps/circle-38-arm64.yaml
30
+ TRIGGER_SOURCE : << pipeline.trigger_source >>
31
31
steps :
32
32
- checkout
33
33
- run :
34
34
name : Check if build is necessary
35
35
command : |
36
36
# Check if tag is defined or TRIGGER_SOURCE is scheduled
37
- if [[ -n ${TAG} ]]; then
38
- export IS_PUSH="true"
37
+ if [[ -n "$CIRCLE_TAG" ]]; then
38
+ echo ' export IS_PUSH="true"' >> "$BASH_ENV "
39
39
elif [[ $TRIGGER_SOURCE == "scheduled_pipeline" ]]; then
40
- export IS_SCHEDULE_DISPATCH="true"
40
+ echo ' export IS_SCHEDULE_DISPATCH="true"' >> "$BASH_ENV "
41
41
# Look for the build label/[wheel build] in commit
42
- elif (git log --format=oneline -n 1 $CIRCLE_SHA1) | grep -q '[wheel build]'; then
42
+ # grep takes a regex, so need to escape brackets
43
+ elif (git log --format=oneline -n 1 $CIRCLE_SHA1) | grep -q '\[wheel build\]'; then
43
44
: # Do nothing
44
45
elif ! (curl https://api.github.com/repos/pandas-dev/pandas/issues/$CIRCLE_PR_NUMBER | jq '.labels' | grep -q 'Build'); then
45
46
circleci-agent step halt
@@ -51,15 +52,24 @@ jobs:
51
52
cibuildwheel --output-dir wheelhouse
52
53
environment :
53
54
CIBW_BUILD : << parameters.cibw-build >>
55
+
54
56
- run :
55
- name : Upload wheels
57
+ name : Install Anaconda Client & Upload Wheels
56
58
command : |
57
- if [[ -n ${TAG} ]]; then
58
- export IS_PUSH="true"
59
- fi
60
- if [[ $TRIGGER_SOURCE == "scheduled_pipeline" ]]; then
61
- export IS_SCHEDULE_DISPATCH="true"
62
- fi
59
+ echo "Install Mambaforge"
60
+ MAMBA_URL="https://github.com/conda-forge/miniforge/releases/download/4.14.0-0/Mambaforge-4.14.0-0-Linux-aarch64.sh"
61
+ echo "Downloading $MAMBA_URL"
62
+ wget -q $MAMBA_URL -O minimamba.sh
63
+ chmod +x minimamba.sh
64
+
65
+ MAMBA_DIR="$HOME/miniconda3"
66
+ rm -rf $MAMBA_DIR
67
+ ./minimamba.sh -b -p $MAMBA_DIR
68
+
69
+ export PATH=$MAMBA_DIR/bin:$PATH
70
+
71
+ mamba install -y -c conda-forge anaconda-client
72
+
63
73
source ci/upload_wheels.sh
64
74
set_upload_vars
65
75
upload_wheels
0 commit comments