Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add MacOS Conda deployment step #826

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 41 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,43 @@ jobs:
command: |
anaconda -t $ANACONDA_TOKEN upload -u Radiomics /conda-bld/linux-64/pyradiomics-*.tar.bz2 --force

deploy_conda_macos:
working_directory: ~/pyradiomics
macos:
xcode: 12.5.1
steps:
- run:
name: Setup MAC OS environment
# Workaround the following error occurring because python installation is cached but gettext dependency is not
# dyld: Library not loaded: /usr/local/opt/gettext/lib/libintl.8.dylib
# Referenced from: /Users/travis/.pyenv/versions/3.7.2/bin/python
# Reason: Incompatible library version: python requires version 11.0.0 or later, but libintl.8.dylib provides version 10.0.0
# See https://github.com/scikit-build/cmake-python-distributions/issues/112 and
# https://github.com/scikit-build/cmake-python-distributions/pull/113
command: |
echo "HOMEBREW_NO_AUTO_UPDATE=1" >> $BASH_ENV
brew install gettext
brew install pyenv
pyenv install miniconda3-latest
echo 'export PATH=$HOME/.pyenv/versions/miniconda3-latest/bin:$PATH' >> $BASH_ENV
- checkout
- run:
name: Configure Miniconda
command: |
bash ./conda/configure_conda.sh
- run:
name: Build Conda packages
command: |
mkdir ~/conda-bld
conda build ./conda --python=3.6 --croot ~/conda-bld
conda build ./conda --python=3.7 --croot ~/conda-bld
conda build ./conda --python=3.8 --croot ~/conda-bld
conda build ./conda --python=3.9 --croot ~/conda-bld
- run:
name: Deploy Conda packages
command: |
anaconda -t $ANACONDA_TOKEN upload -u Radiomics ~/conda-bld/osx-64/pyradiomics-*.tar.bz2 --force

workflows:
version: 2
build_and_deploy:
Expand Down Expand Up @@ -303,7 +340,7 @@ workflows:
tags:
only:
- /^v?[0-9]+(\.[0-9]+)*/
- deploy_conda:
- deploy_conda: &deploy_conda_template
<<: *requires_template
filters:
branches:
Expand All @@ -312,3 +349,6 @@ workflows:
tags:
only:
- /^v?[0-9]+(\.[0-9]+)*((a|b|rc)[0-9]+)?/

- deploy_conda_macos:
<<: *deploy_conda_template