Skip to content

Commit

Permalink
Added arm build, and added conda base activation for upload to cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
vhaasteren committed Nov 15, 2023
1 parent 5c757a5 commit 4662bc4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ jobs:
name: codecov-umbrella
fail_ci_if_error: true

build:

build:
needs: tests
runs-on: ubuntu-latest
steps:
Expand All @@ -72,9 +73,10 @@ jobs:
CIBW_BEFORE_BUILD: "pip install numpy>=1.16.3 --only-binary=numpy scipy>=1.2.0 --only-binary=scipy"
CIBW_BUILD_VERBOSITY: 1
CIBW_SKIP: "pp* cp27-* cp35-* cp36-* cp37-* cp38-* *-win32 *-manylinux_i686 *-musllinux_i686 *-macosx_10_6_intel *-macosx_10_9_intel *-macosx_10_10_intel *-macosx_10_11_intel *-macosx_10_12_intel *-macosx_10_13_intel *-macosx_10_14_intel *-macosx_10_15_intel"
CIBW_ARCHS: "x86_64"
CIBW_ARCHS: "x86_64 aarch64"
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux2014"
CIBW_MANYLINUX_AARCH64_IMAGE: "manylinux2014_aarch64"
- name: Build source distribution
run: python setup.py sdist
- uses: actions/upload-artifact@v3
Expand All @@ -84,6 +86,7 @@ jobs:
./dist/*.whl
./dist/*.tar.gz
deploy:
needs: build
runs-on: ubuntu-latest
Expand All @@ -110,6 +113,7 @@ jobs:
#TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
#TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/


conda-package:
runs-on: ubuntu-latest
needs: [tests, build]
Expand All @@ -133,7 +137,7 @@ jobs:
if: github.event_name == 'release'
run: |
echo "Uploading to Anaconda Cloud..."
source activate base
anaconda -t ${{ secrets.ANACONDA_API_TOKEN }} upload $(conda build recipe/ --output)
env:
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }}

0 comments on commit 4662bc4

Please sign in to comment.