Skip to content

Commit

Permalink
try build wheel using github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieqiong committed Sep 6, 2024
1 parent 5923fa2 commit cd0427b
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
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'
run: |
sudo apt-get update
sudo apt-get install -y libgsl-dev
# - name: Setup macOS
# if: runner.os == 'macOS'

# - name: Setup Windows
# if: runner.os == 'windows'

- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- name: Build wheels
uses: pypa/cibuildwheel@v2.20.0
env:
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}

- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
path: ./wheelhouse/*.whl

0 comments on commit cd0427b

Please sign in to comment.