66 - published
77
88jobs :
9- dist :
10- name : Build distribution packages
9+ dist-on-linux :
10+ name : Build distribution packages for Linux
1111
1212 strategy :
1313 matrix :
1414 os :
1515 - ubuntu-24.04
1616 - ubuntu-24.04-arm
17- - macos-15
17+ python-version :
18+ - ' 3.11'
19+ - ' 3.12'
20+ - ' 3.13'
21+
22+ runs-on : ${{ matrix.os }}
23+
24+ steps :
25+ - name : Checkout code
26+ uses : actions/checkout@v6
27+ with :
28+ submodules : recursive
29+
30+ - name : Set up Python
31+ uses : actions/setup-python@v6
32+ with :
33+ python-version : ${{ matrix.python-version }}
34+
35+ - name : Install dependencies
36+ run : |
37+ python -m pip install --upgrade pip
38+ python -m pip install setuptools wheel build cython
39+ python -m pip install auditwheel
40+
41+ - name : Build wheel and source tarball
42+ run : |
43+ python -m build
44+ auditwheel repair dist/softfloatpy-*.whl
45+
46+ - name : Store built wheel
47+ uses : actions/upload-artifact@v6
48+ with :
49+ name : python-${{ matrix.python-version }}-package-for-${{ matrix.os }}
50+ path : wheelhouse/softfloatpy-*.whl
51+ retention-days : 1
52+
53+ dist-on-macos :
54+ name : Build distribution packages for macOS
55+
56+ strategy :
57+ matrix :
58+ os :
59+ # - macos-15
1860 - macos-15-intel
1961 python-version :
2062 - ' 3.11'
63+ - ' 3.12'
64+ - ' 3.13'
2165
2266 runs-on : ${{ matrix.os }}
2367
@@ -41,18 +85,61 @@ jobs:
4185 run : |
4286 python -m build
4387
44- - name : Store distribution
88+ - name : Store built wheel
4589 uses : actions/upload-artifact@v6
4690 with :
4791 name : python-${{ matrix.python-version }}-package-for-${{ matrix.os }}
48- path : dist/
92+ path : dist/softfloatpy-*.whl
93+ retention-days : 1
94+
95+ dist-on-windows :
96+ name : Build distribution packages for Windows
97+
98+ strategy :
99+ matrix :
100+ os :
101+ - windows-2025
102+ python-version :
103+ - ' 3.11'
104+ - ' 3.12'
105+ - ' 3.13'
106+
107+ runs-on : ${{ matrix.os }}
108+
109+ steps :
110+ - name : Checkout code
111+ uses : actions/checkout@v6
112+ with :
113+ submodules : recursive
114+
115+ - name : Set up Python
116+ uses : actions/setup-python@v6
117+ with :
118+ python-version : ${{ matrix.python-version }}
119+
120+ - name : Install dependencies
121+ run : |
122+ python -m pip install --upgrade pip
123+ python -m pip install setuptools wheel build cython
124+
125+ - name : Build wheel and source tarball
126+ run : |
127+ python -m build
128+
129+ - name : Store built wheel
130+ uses : actions/upload-artifact@v6
131+ with :
132+ name : python-${{ matrix.python-version }}-package-for-${{ matrix.os }}
133+ path : dist/softfloatpy-*.whl
49134 retention-days : 1
50135
51136 pypi :
52137 name : Publish distribution
53138
54139 needs :
55- - dist
140+ - dist-on-linux
141+ - dist-on-macos
142+ - dist-on-windows
56143
57144 runs-on : ubuntu-latest
58145
@@ -73,10 +160,14 @@ jobs:
73160
74161 - name : Publish distribution to PyPI
75162 uses : pypa/gh-action-pypi-publish@release/v1
163+ with :
164+ verbose : true
76165
77166 github-release :
78167 needs :
79- - dist
168+ - dist-on-linux
169+ - dist-on-macos
170+ - dist-on-windows
80171
81172 runs-on : ubuntu-latest
82173
95186 - name : Sign distribution with Sigstore
96187 uses : sigstore/gh-action-sigstore-python@v3.0.0
97188 with :
98- inputs : ./dist/*.tar.gz ./dist/*. whl
189+ inputs : ./dist/*.whl
99190
100191 - name : Upload artifact signatures to GitHub Release
101192 env :
0 commit comments