Skip to content

Commit f3fd157

Browse files
justinchubyandife
andauthored
Check ABI3 after upload (#242)
Avoid changing the wheels? --------- Signed-off-by: Justin Chu <[email protected]> Co-authored-by: Andreas Fehlner <[email protected]>
1 parent 9d0e7fd commit f3fd157

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/build-and-test.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@ jobs:
4848
submodules: recursive
4949
- name: Build wheels
5050
uses: pypa/[email protected]
51+
- uses: actions/upload-artifact@v6
52+
with:
53+
name: wheels-${{ matrix.os }}-${{ matrix.python }}
54+
path: ./wheelhouse/*.whl
5155
- name: Check ABI3
5256
run: |
5357
pip install abi3audit
5458
abi3audit --strict -v --report ./wheelhouse/*.whl
5559
if: ${{ contains(fromJSON('["cp312", "cp313"]'), matrix.python) }}
56-
- uses: actions/upload-artifact@v6
57-
with:
58-
name: wheels-${{ matrix.os }}-${{ matrix.python }}
59-
path: ./wheelhouse/*.whl
6060

6161
build_sdist:
6262
name: Build source distribution
@@ -113,12 +113,6 @@ jobs:
113113
pip install -U twine packaging
114114
twine check dist/*
115115
116-
- name: Upload merged dist
117-
uses: actions/upload-artifact@v6
118-
with:
119-
name: dist
120-
path: dist/*
121-
122116
release:
123117
name: Release
124118
runs-on: ubuntu-latest
@@ -130,13 +124,19 @@ jobs:
130124

131125
environment:
132126
name: release
133-
url: https://pypi.org/p/onnxoptimizer
134127

135128
steps:
136-
- name: Download distributions
129+
- name: Download wheels
137130
uses: actions/download-artifact@v7
138131
with:
139-
name: dist
132+
pattern: wheels-*
133+
path: dist
134+
merge-multiple: true
135+
136+
- name: Download sdist
137+
uses: actions/download-artifact@v7
138+
with:
139+
name: sdist
140140
path: dist
141141

142142
- name: Publish to PyPI

0 commit comments

Comments
 (0)