Skip to content

Commit 09cc352

Browse files
committed
use cibuildwheel package instead of action
1 parent d2613ac commit 09cc352

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/wheels.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ jobs:
2222
- name: check out diffpy.pdffit2
2323
uses: actions/checkout@v4
2424

25-
# - name: Setup Linux
26-
# if: runner.os == 'Linux'
25+
- name: Setup Linux
26+
if: runner.os == 'Linux'
27+
run: |
28+
sudo apt-get update
29+
sudo apt-get install -y libgsl-dev
2730
2831
# - name: Setup macOS
2932
# if: runner.os == 'macOS'
@@ -35,14 +38,13 @@ jobs:
3538
with:
3639
python-version: 3.12
3740

41+
- name: Install cibuildwheel
42+
run: python -m pip install cibuildwheel==2.20.0
43+
3844
- name: Build wheels
39-
uses: pypa/[email protected]
4045
env:
4146
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
42-
CIBW_BEFORE_BUILD: |
43-
yum install -y epel-release
44-
yum install -y gcc-c++ gsl gsl-devel
45-
ls -l /usr/lib/ | grep libgsl
47+
run: python -m cibuildwheel --output-dir wheelhouse
4648

4749
- uses: actions/upload-artifact@v4
4850
with:

0 commit comments

Comments
 (0)