Skip to content

Commit 511b665

Browse files
committed
Fix actions in /.github/workflows/
1 parent 5b6ca45 commit 511b665

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

.github/workflows/pypi-deploy.yml

+17-12
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ jobs:
1212
name: Prepare environment for wheel builds
1313
runs-on: ubuntu-24.04
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v2
1616
- name: Prepare wheel build
1717
run: make -C python/ setup
1818
- name: Store wheel configuration files
1919
uses: actions/upload-artifact@v4
2020
with:
2121
name: wheel-config
2222
path: python/
23+
- name: Display files
24+
run: ls -lR
2325

2426
build_wheels:
2527
name: Build binary wheels on ${{ matrix.os }}
@@ -31,8 +33,10 @@ jobs:
3133
arch: [auto32, auto64, aarch64]
3234

3335
steps:
34-
- uses: actions/checkout@v4
35-
- uses: pypa/[email protected]
36+
- uses: actions/checkout@v2
37+
- uses: actions/setup-python@v2
38+
- name: Install cibuildwheel
39+
run: python -m pip install cibuildwheel==2.1.2
3640
- name: Get wheel configuration files
3741
uses: actions/[email protected]
3842
with:
@@ -46,21 +50,17 @@ jobs:
4650
- name: Store binary wheels
4751
uses: actions/upload-artifact@v4
4852
with:
49-
name: binary-wheels
53+
name: binary-wheels-${{matrix.os}}-${{matrix.arch}}
5054
path: python/wheelhouse/*.whl
5155

5256
build_sdist:
5357
name: Build source distribution
5458
runs-on: ubuntu-24.04
5559
needs: [build_setup]
5660
steps:
57-
- uses: actions/checkout@v4
61+
- uses: actions/checkout@v2
5862
- name: Install cython
59-
run: |
60-
sudo apt-get update
61-
sudo apt-get install -y cython3
62-
env:
63-
DEBIAN_FRONTEND: noninteractive
63+
run: python -m pip install cython==0.29.24
6464
- name: Get wheel configuration files
6565
uses: actions/[email protected]
6666
with:
@@ -74,10 +74,12 @@ jobs:
7474
with:
7575
name: source-wheels
7676
path: python/dist/*.tar.gz
77+
- name: Display files
78+
run: ls -lR
7779

7880

7981
upload_pypi:
80-
name: Upload binary wheels to PyPI
82+
name: Upload wheels to PyPI
8183
runs-on: ubuntu-24.04
8284
needs: [build_wheels, build_sdist]
8385

@@ -90,8 +92,11 @@ jobs:
9092
- name: Get binary wheels
9193
uses: actions/[email protected]
9294
with:
93-
name: binary-wheels
9495
path: dist/
96+
pattern: binary-wheels-*
97+
merge-multiple: true
98+
- name: Display files
99+
run: ls -lR
95100

96101
- uses: pypa/gh-action-pypi-publish@release/v1
97102
with:

0 commit comments

Comments
 (0)