-
Notifications
You must be signed in to change notification settings - Fork 18
51 lines (42 loc) · 1.33 KB
/
wheels.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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 gcc-c++ gsl gsl-devel
find / -name "libgsl.so*" 2>/dev/null
ls -l /usr/lib64 | grep gsl
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
path: ./wheelhouse/*.whl