Skip to content

Commit d8b5a58

Browse files
authored
repair rknn wheels (k2-fsa#2257)
1 parent 16a3449 commit d8b5a58

1 file changed

Lines changed: 24 additions & 1 deletion

File tree

.github/workflows/build-wheels-aarch64-rknn.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ jobs:
2525
with:
2626
fetch-depth: 0
2727

28+
- name: Setup Python
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
2833
- name: Download rknn-toolkit2
2934
shell: bash
3035
run: |
@@ -109,10 +114,28 @@ jobs:
109114
export SHERPA_ONNX_CMAKE_ARGS="-DSHERPA_ONNX_ENABLE_RKNN=ON"
110115
python3 setup.py bdist_wheel
111116
117+
mv dist wheelhouse
118+
112119
- name: Display results
113120
shell: bash
114121
run: |
115-
ls -lh dist
122+
ls -lh wheelhouse
123+
124+
- name: Fix wheel name
125+
shell: bash
126+
run: |
127+
python3 -m pip install auditwheel
128+
129+
auditwheel show ./wheelhouse/*.whl
130+
131+
auditwheel repair --help
132+
133+
auditwheel --verbose repair --plat manylinux_2_27_aarch64 \
134+
--exclude librknnrt.so \
135+
--exclude libasound.so.2 \
136+
-w ./dist ./wheelhouse/*.whl
137+
138+
ls -lh dist/*.whl
116139
117140
- name: Show glibc versions
118141
shell: bash

0 commit comments

Comments
 (0)