Skip to content

Commit

Permalink
BLD: Fix uploading of aarch64 wheels (#51358)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
lithomas1 authored Feb 14, 2023
1 parent fe85cbf commit 74d5c19
Showing 1 changed file with 21 additions and 12 deletions.
33 changes: 21 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ jobs:
image: ubuntu-2004:202101-01
resource_class: arm.large
environment:
TAG = << pipeline.git.tag >>
TRIGGER_SOURCE = << pipeline.trigger_source >>
ENV_FILE: ci/deps/circle-38-arm64.yaml
TRIGGER_SOURCE: << pipeline.trigger_source >>
steps:
- checkout
- run:
name: Check if build is necessary
command: |
# Check if tag is defined or TRIGGER_SOURCE is scheduled
if [[ -n ${TAG} ]]; then
export IS_PUSH="true"
if [[ -n "$CIRCLE_TAG" ]]; then
echo 'export IS_PUSH="true"' >> "$BASH_ENV"
elif [[ $TRIGGER_SOURCE == "scheduled_pipeline" ]]; then
export IS_SCHEDULE_DISPATCH="true"
echo 'export IS_SCHEDULE_DISPATCH="true"' >> "$BASH_ENV"
# Look for the build label/[wheel build] in commit
# grep takes a regex, so need to escape brackets
elif (git log --format=oneline -n 1 $CIRCLE_SHA1) | grep -q '\[wheel build\]'; then
Expand All @@ -52,15 +52,24 @@ jobs:
cibuildwheel --output-dir wheelhouse
environment:
CIBW_BUILD: << parameters.cibw-build >>

- run:
name: Upload wheels
name: Install Anaconda Client & Upload Wheels
command: |
if [[ -n ${TAG} ]]; then
export IS_PUSH="true"
fi
if [[ $TRIGGER_SOURCE == "scheduled_pipeline" ]]; then
export IS_SCHEDULE_DISPATCH="true"
fi
echo "Install Mambaforge"
MAMBA_URL="https://github.com/conda-forge/miniforge/releases/download/4.14.0-0/Mambaforge-4.14.0-0-Linux-aarch64.sh"
echo "Downloading $MAMBA_URL"
wget -q $MAMBA_URL -O minimamba.sh
chmod +x minimamba.sh
MAMBA_DIR="$HOME/miniconda3"
rm -rf $MAMBA_DIR
./minimamba.sh -b -p $MAMBA_DIR
export PATH=$MAMBA_DIR/bin:$PATH
mamba install -y -c conda-forge anaconda-client
source ci/upload_wheels.sh
set_upload_vars
upload_wheels
Expand Down

0 comments on commit 74d5c19

Please sign in to comment.