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
1817 - macos-15-intel
1918 python-version :
2019 - ' 3.11'
20+ - ' 3.12'
21+ - ' 3.13'
2122
2223 runs-on : ${{ matrix.os }}
2324
@@ -36,23 +37,110 @@ jobs:
3637 run : |
3738 python -m pip install --upgrade pip
3839 python -m pip install setuptools wheel build cython
40+ python -m pip install auditwheel
3941
4042 - name : Build wheel and source tarball
4143 run : |
4244 python -m build
45+ auditwheel repair dist/softfloatpy-*.whl
4346
44- - name : Store distribution
47+ - name : Store built wheel
4548 uses : actions/upload-artifact@v6
4649 with :
4750 name : python-${{ matrix.python-version }}-package-for-${{ matrix.os }}
48- path : dist/
51+ path : wheelhouse/softfloatpy-*.whl
52+ retention-days : 1
53+
54+ dist-on-macos :
55+ name : Build distribution packages for macOS
56+
57+ strategy :
58+ matrix :
59+ os :
60+ # - macos-15
61+ - macos-15-intel
62+ python-version :
63+ - ' 3.11'
64+ - ' 3.12'
65+ - ' 3.13'
66+
67+ runs-on : ${{ matrix.os }}
68+
69+ steps :
70+ - name : Checkout code
71+ uses : actions/checkout@v6
72+ with :
73+ submodules : recursive
74+
75+ - name : Set up Python
76+ uses : actions/setup-python@v6
77+ with :
78+ python-version : ${{ matrix.python-version }}
79+
80+ - name : Install dependencies
81+ run : |
82+ python -m pip install --upgrade pip
83+ python -m pip install setuptools wheel build cython
84+
85+ - name : Build wheel and source tarball
86+ run : |
87+ python -m build
88+
89+ - name : Store built wheel
90+ uses : actions/upload-artifact@v6
91+ with :
92+ name : python-${{ matrix.python-version }}-package-for-${{ matrix.os }}
93+ path : dist/softfloatpy-*.whl
94+ retention-days : 1
95+
96+ dist-on-windows :
97+ name : Build distribution packages for Windows
98+
99+ strategy :
100+ matrix :
101+ os :
102+ - windows-2025
103+ python-version :
104+ - ' 3.11'
105+ - ' 3.12'
106+ - ' 3.13'
107+
108+ runs-on : ${{ matrix.os }}
109+
110+ steps :
111+ - name : Checkout code
112+ uses : actions/checkout@v6
113+ with :
114+ submodules : recursive
115+
116+ - name : Set up Python
117+ uses : actions/setup-python@v6
118+ with :
119+ python-version : ${{ matrix.python-version }}
120+
121+ - name : Install dependencies
122+ run : |
123+ python -m pip install --upgrade pip
124+ python -m pip install setuptools wheel build cython
125+
126+ - name : Build wheel and source tarball
127+ run : |
128+ python -m build
129+
130+ - name : Store built wheel
131+ uses : actions/upload-artifact@v6
132+ with :
133+ name : python-${{ matrix.python-version }}-package-for-${{ matrix.os }}
134+ path : dist/softfloatpy-*.whl
49135 retention-days : 1
50136
51137 pypi :
52138 name : Publish distribution
53139
54140 needs :
55- - dist
141+ - dist-on-linux
142+ - dist-on-macos
143+ - dist-on-windows
56144
57145 runs-on : ubuntu-latest
58146
@@ -73,10 +161,14 @@ jobs:
73161
74162 - name : Publish distribution to PyPI
75163 uses : pypa/gh-action-pypi-publish@release/v1
164+ with :
165+ verbose : true
76166
77167 github-release :
78168 needs :
79- - dist
169+ - dist-on-linux
170+ - dist-on-macos
171+ - dist-on-windows
80172
81173 runs-on : ubuntu-latest
82174
95187 - name : Sign distribution with Sigstore
96188 uses : sigstore/gh-action-sigstore-python@v3.0.0
97189 with :
98- inputs : ./dist/*.tar.gz ./dist/*. whl
190+ inputs : ./dist/*.whl
99191
100192 - name : Upload artifact signatures to GitHub Release
101193 env :
0 commit comments