modify code to allow for one-line script to reproduce all BFP paper e… #553
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MacOS - build wheels | |
on: | |
push: | |
pull_request: | |
release: | |
types: | |
- published | |
jobs: | |
build_wheels_macos: | |
name: Build wheels on macos-latest | |
runs-on: macos-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install MacOS dependencies | |
run: | | |
brew install libomp armadillo | |
# Note: CIBW only supports CPython 3.8 and newer for universal2 and arm64 wheels | |
- name: Build wheels | |
uses: pypa/[email protected] | |
env: | |
CIBW_ARCHS_MACOS: x86_64 arm64 universal2 | |
CIBW_BUILD: cp* | |
CIBW_BUILD_VERBOSITY: 3 | |
- uses: actions/upload-artifact@v2 | |
with: | |
path: ./wheelhouse/*.whl | |
upload_pypi: | |
needs: [build_wheels_macos] | |
runs-on: ubuntu-latest # Can only upload from Linux containers | |
# TODO: RBF | |
if: github.event_name == 'release' && github.event.action == 'published' | |
steps: | |
- uses: actions/download-artifact@v2 | |
with: | |
name: artifact | |
path: dist | |
- uses: pypa/[email protected] | |
with: | |
user: __token__ | |
# For PyPI | |
password: ${{ secrets.PYPI_APIKEY }} | |
# For TestPyPI. TODO: RBF | |
# password: ${{ secrets.TEST_PYPI_APIKEY }} | |
# repository_url: https://test.pypi.org/legacy/ |