Skip to content

ci testing

ci testing #7

Workflow file for this run

name: ci-build
on:
workflow_call:
inputs:
py:
description: 'Python version'
required: false
default: 3
type: string
workflow_dispatch:
inputs:
py:
description: 'Python version'
required: true
default: 3
type: string
pull_request:
push:
branches:
- windows_build
release:
types:
- published
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-latest, windows-latest, macos-13, macos-14]
os:
- windows-2019
- windows-2022
mpi:
- msmpi
- mpich
exclude:
- os: windows-2019
mpi: mpich
- os: windows-2022
mpi: mpich
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup MPI (${{ matrix.mpi }})
uses: mpi4py/setup-mpi@v1
with:
mpi: ${{ matrix.mpi }}
- name: Setup Python (${{ github.event.inputs.py || 3 }})
uses: actions/setup-python@v5
with:
python-version: ${{ github.event.inputs.py || 3 }}
cache: pip
- name: Upgrade pip
run: python -m pip install -U pip
- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.17.0
- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
# Only build 64-bit on Windows
CIBW_ARCHS_WINDOWS: "AMD64"
# Disable building PyPy wheels on all platforms
CIBW_SKIP: pp*
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl