Skip to content

Commit caef2a9

Browse files
committed
improve .github/workflows/release.yml
1 parent b7e9104 commit caef2a9

File tree

1 file changed

+4
-43
lines changed

1 file changed

+4
-43
lines changed

Diff for: .github/workflows/release.yml

+4-43
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,18 @@ jobs:
2222
runs-on: ${{ matrix.platform.runner }}
2323
strategy:
2424
matrix:
25+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
2526
platform:
2627
- runner: ubuntu-latest
2728
target: x86_64
2829
- runner: ubuntu-latest
2930
target: x86
30-
# - runner: ubuntu-latest
31-
# target: aarch64
32-
# - runner: ubuntu-latest
33-
# target: armv7
34-
# - runner: ubuntu-latest
35-
# target: s390x
36-
# - runner: ubuntu-latest
37-
# target: ppc64le
31+
3832
steps:
3933
- uses: actions/checkout@v4
4034
- uses: actions/setup-python@v5
4135
with:
42-
python-version: "3.10"
36+
python-version: ${{ matrix.python-version }}
4337

4438
- name: Build wheels
4539
uses: PyO3/maturin-action@v1.44.0
@@ -53,41 +47,9 @@ jobs:
5347
- name: Upload wheels
5448
uses: actions/upload-artifact@v4
5549
with:
56-
name: wheels-linux-${{ matrix.platform.target }}
50+
name: wheels-linux-${{ matrix.platform.target }}-py${{ matrix.python-version }}
5751
path: dist
5852

59-
# musllinux:
60-
# runs-on: ${{ matrix.platform.runner }}
61-
# strategy:
62-
# matrix:
63-
# platform:
64-
# - runner: ubuntu-latest
65-
# target: x86_64
66-
# # - runner: ubuntu-latest
67-
# # target: x86
68-
# # - runner: ubuntu-latest
69-
# # target: aarch64
70-
# # - runner: ubuntu-latest
71-
# # target: armv7
72-
# steps:
73-
# - uses: actions/checkout@v4
74-
# - uses: actions/setup-python@v5
75-
# with:
76-
# python-version: 3.x
77-
# - name: Build wheels
78-
# uses: PyO3/maturin-action@v1.44.0
79-
# with:
80-
# target: ${{ matrix.platform.target }}
81-
# args: --release --out dist --find-interpreter
82-
# sccache: 'true'
83-
# manylinux: musllinux_1_2
84-
# before-script-linux: (apt-get update && apt-get install -y apt-utils && apt-get install -y pkg-config libssl-dev) || (yum install openssl openssl-devel -y)
85-
# - name: Upload wheels
86-
# uses: actions/upload-artifact@v4
87-
# with:
88-
# name: wheels-musllinux-${{ matrix.platform.target }}
89-
# path: dist
90-
9153
macos:
9254
runs-on: ${{ matrix.platform.runner }}
9355
strategy:
@@ -134,7 +96,6 @@ jobs:
13496
runs-on: ubuntu-latest
13597
environment: release
13698
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
137-
#needs: [linux, macos, musllinux, sdist]
13899
needs: [linux, macos, sdist]
139100
permissions:
140101
# Use to sign the release artifacts

0 commit comments

Comments
 (0)