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

ARM64 builds #132

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
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
19 changes: 18 additions & 1 deletion .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ jobs:
buildplat:
- [ubuntu-20.04, manylinux, x86_64]
- [macos-10.15, macosx, x86_64]
- [macos-latest, macosx, arm64]
- [windows-2019, win, AMD64]
- [windows-2019, win, arm64]


python: ["cp38", "cp39", "cp310", "cp311"]
fail-fast: false
Expand All @@ -35,6 +38,14 @@ jobs:
IS_32_BIT: ${{ matrix.buildplat[2] == 'x86' }}

steps:
- name: Set up QEMU to emulate arm64 on x86_64
if: ${{ matrix.buildplat[2] == 'arm64' }}
id: qemu-arm64
uses: docker/setup-qemu-action@v1
with:
image: tonistiigi/binfmt:latest
platforms: arm64

- uses: actions/checkout@v3
with:
fetch-depth: 0
Expand Down Expand Up @@ -67,7 +78,7 @@ jobs:
- name: Check tag
id: check-tag
run: |
if [[ ${{ github.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
if [[ ${{ github.ref }} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+ ]]; then
echo ::set-output name=match::true
fi
shell: bash
Expand All @@ -76,6 +87,12 @@ jobs:
if: steps.check-tag.outputs.match == 'true'
run: |
pip install twine
if [ "$RUNNER_OS" == "Linux" ]; then
# build and upload sdist only once
pip install build
python -m build
twine upload dist/matscipy-*.tar.gz
fi
twine upload wheelhouse/*.whl
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,3 @@ jobs:
branch: gh-pages
directory: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Publish package
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}