Skip to content

Build wheel

Build wheel #5

Workflow file for this run

name: Build wheel
on:
workflow_dispatch:
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
platform: [windows-latest, ubuntu-latest, macos-latest]
env:
CIBW_SKIP: 'pp*'
CIBW_ARCHS: 'auto64'
CIBW_PROJECT_REQUIRES_PYTHON: '>=3.9'
defaults:
run:
shell: bash -l {0}
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Build Wheel
run: |
python -m pip install cibuildwheel==2.16.5
python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl
- name: Run Example
run: |
python -m pip install numpy
python -m pip install --no-index --find-links wheelhouse/ gimpact
python -m unittest