Skip to content

Update peer to compile and work on modern platforms. #1

Update peer to compile and work on modern platforms.

Update peer to compile and work on modern platforms. #1

name: Build peer Python package exclusively
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v3
- name: Setup Miniconda
uses: conda-incubator/[email protected]
with:
mamba-version: "*"
channel-priority: true
activate-environment: peer
environment-file: peer-environment.yml
- name: Assemble Python source package
run: |
pushd conda_forge_python
bash create_python_package.sh
popd
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: python-package
path: conda_forge_python/peer/dist/peer-*.tar.gz
cibuildwheel:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
needs: build
steps:
- uses: actions/download-artifact@v4
with:
name: python-package
- name: Setup Miniconda
uses: conda-incubator/[email protected]
with:
mamba-version: "*"
channel-priority: true
activate-environment: peer
environment-file: peer-environment.yml
- name: cibuildwheel for python
uses: pypa/[email protected]
with:
package-dir: conda_forge_python/peer/dist/peer-2.0.0.tar.gz
env:
CIBW_ARCHS_MACOS: x86_64 arm64
- uses: actions/upload-artifact@v4
with:
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
path: ./wheelhouse/*.whl