Test using CIBW

hotfix/mipmap-alpha-fix
Andrew Cassidy 3 years ago
parent f2873f3a38
commit 0478532cb9

@ -53,17 +53,12 @@ jobs:
build: build:
needs: test needs: test
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') if: github.event_name == 'push'
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
env: env:
MACOSX_DEPLOYMENT_TARGET: 10.15 MACOSX_DEPLOYMENT_TARGET: 10.15
strategy:
matrix:
python-version: [ 3.7, 3.8, 3.9 ]
os: [ macos-latest, windows-latest ]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
@ -71,29 +66,23 @@ jobs:
# recursively checkout submodules. # recursively checkout submodules.
submodules: 'true' submodules: 'true'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install libomp - name: Install libomp
if: runner.os == 'macOS' if: runner.os == 'macOS'
# openMP isnt part of core apple clang for some reason? # openMP isnt part of core apple clang for some reason?
run: brew install libomp run: brew install libomp
- name: Install dependencies - name: Build wheels
run: | uses: joerick/cibuildwheel@v1.11.0
python -m pip install --upgrade pip env:
python -m pip install setuptools wheel twine build CIBW_BUILD: { cp,pp }{ 37,38,39 }-*
CIBW_SKIP: "*-win32 *-manylinux_i686"
- name: Build a binary wheel CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
run: python -m build --wheel --outdir dist/
- name: Upload wheel as artifact - name: Upload wheel as artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: dist name: dist
path: dist path: ./wheelhouse/*.whl
publish: publish:
needs: build needs: build

Loading…
Cancel
Save