Skip to content

[Trying] try build wheel using github actions #9

[Trying] try build wheel using github actions

[Trying] try build wheel using github actions #9

Workflow file for this run

name: Wheel builder
on:
pull_request:
workflow_dispatch:
jobs:
build_wheels:
name: Build wheel ${{ matrix.python }}-${{ matrix.buildplat[1] }}
runs-on: ${{ matrix.buildplat[0] }}
strategy:
fail-fast: false
matrix:
buildplat:
- [ubuntu-22.04, manylinux_x86_64]
# - [macos-13, macosx_x86_64]
# - [macos-14, macosx_arm64]
# - [windows-2019, win_amd64]
python: ["cp310"] # , "cp311", "cp312"
steps:
- name: check out diffpy.pdffit2
uses: actions/checkout@v4
# - name: Setup Linux
# if: runner.os == 'Linux'
# - name: Setup macOS
# if: runner.os == 'macOS'
# - name: Setup Windows
# if: runner.os == 'windows'
- uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Build wheels
uses: pypa/cibuildwheel@v2.20.0
env:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
CIBW_BEFORE_BUILD: |
yum install -y epel-release
yum install -y gsl gsl-devel
gsl-config --version
echo $PATH
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
path: ./wheelhouse/*.whl