Skip to content

Commit

Permalink
Deploy wheels.
Browse files Browse the repository at this point in the history
  • Loading branch information
gedaskir committed Jun 6, 2021
1 parent d190381 commit 20d1a77
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Build

on: [push, pull_request]
#on: [push, pull_request]

on:
push:
tags:
- '*'

jobs:
build_wheels:
Expand All @@ -20,11 +25,21 @@ jobs:
#CIBW_BEFORE_ALL_MACOS: brew install gcc
CIBW_BEFORE_ALL_MACOS: bash scripts/build-wheels-macos.sh
CIBW_BEFORE_BUILD: pip install numpy scipy cython
CIBW_BUILD: cp36-* cp37-* cp38-* cp39-*
CIBW_BUILD: cp36-*
#cp37-* cp38-* cp39-*
CIBW_SKIP: "*-win32 *-manylinux_i686 *aarch64 *ppc64le *s390x *universal2 *arm64"
CIBW_TEST_REQUIRES: pytest
CIBW_TEST_COMMAND: pytest --pyargs qmeq

- uses: actions/upload-artifact@v2
with:
path: ./wheelhouse/*.whl

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*.whl
tag: ${{ github.ref }}
overwrite: true
file_glob: true

0 comments on commit 20d1a77

Please sign in to comment.