diff --git a/.github/workflows/ci_test.yml b/.github/workflows/ci_test.yml index 5cda1f4..825bcdd 100644 --- a/.github/workflows/ci_test.yml +++ b/.github/workflows/ci_test.yml @@ -50,7 +50,8 @@ jobs: name: codecov-umbrella fail_ci_if_error: true - build: + +build: needs: tests runs-on: ubuntu-latest steps: @@ -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 @@ -84,6 +86,7 @@ jobs: ./dist/*.whl ./dist/*.tar.gz + deploy: needs: build runs-on: ubuntu-latest @@ -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] @@ -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 }} -