Skip to content

Commit 071cbb0

Browse files
authored
fix(ci): tag wheel as cp311 linux_aarch64 instead of py3-none-any (#19)
1 parent cfc1993 commit 071cbb0

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
if: matrix.chip == 'AX650'
4848
uses: actions/setup-python@v5
4949
with:
50-
python-version: '3.10'
50+
python-version: '3.11'
5151

5252
- name: Install Python build deps
5353
if: matrix.chip == 'AX650'
@@ -108,8 +108,13 @@ jobs:
108108
run: |
109109
cd python
110110
python -m build --wheel
111+
# Rename wheel with correct aarch64 platform tag
111112
mkdir -p ../wheels
112-
cp dist/*.whl ../wheels/
113+
for whl in dist/*.whl; do
114+
new_name=$(echo $whl | sed 's/-py3-none-any/-cp311-cp311-linux_aarch64/')
115+
mv "$whl" "$new_name"
116+
cp "$new_name" ../wheels/
117+
done
113118
114119
- name: Package C++ install
115120
run: |

0 commit comments

Comments
 (0)