Skip to content

Commit 74d5c19

Browse files
authored
BLD: Fix uploading of aarch64 wheels (#51358)
* BLD: Fix uploading of aarch64 wheels * Update config.yml * Update config.yml * Update config.yml * Update config.yml * Update config.yml * fix style * Update config.yml * Update config.yml * style
1 parent fe85cbf commit 74d5c19

File tree

1 file changed

+21
-12
lines changed

1 file changed

+21
-12
lines changed

.circleci/config.yml

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,18 @@ jobs:
2626
image: ubuntu-2004:202101-01
2727
resource_class: arm.large
2828
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 >>
3131
steps:
3232
- checkout
3333
- run:
3434
name: Check if build is necessary
3535
command: |
3636
# 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"
3939
elif [[ $TRIGGER_SOURCE == "scheduled_pipeline" ]]; then
40-
export IS_SCHEDULE_DISPATCH="true"
40+
echo 'export IS_SCHEDULE_DISPATCH="true"' >> "$BASH_ENV"
4141
# Look for the build label/[wheel build] in commit
4242
# grep takes a regex, so need to escape brackets
4343
elif (git log --format=oneline -n 1 $CIRCLE_SHA1) | grep -q '\[wheel build\]'; then
@@ -52,15 +52,24 @@ jobs:
5252
cibuildwheel --output-dir wheelhouse
5353
environment:
5454
CIBW_BUILD: << parameters.cibw-build >>
55+
5556
- run:
56-
name: Upload wheels
57+
name: Install Anaconda Client & Upload Wheels
5758
command: |
58-
if [[ -n ${TAG} ]]; then
59-
export IS_PUSH="true"
60-
fi
61-
if [[ $TRIGGER_SOURCE == "scheduled_pipeline" ]]; then
62-
export IS_SCHEDULE_DISPATCH="true"
63-
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+
6473
source ci/upload_wheels.sh
6574
set_upload_vars
6675
upload_wheels

0 commit comments

Comments
 (0)