Skip to content

Commit

Permalink
👷 fix build wheel with correct platform naming
Browse files Browse the repository at this point in the history
Signed-off-by: ff137 <[email protected]>
  • Loading branch information
ff137 committed Aug 21, 2024
1 parent c988001 commit fd8b269
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,19 @@ jobs:
shell: sh
run: |
poetry install --no-dev
python -m build --wheel --plat-name=${{ matrix.plat-name }}
poetry build
### Platform-specific wheel renaming:
wheel_file=$(find dist/ -type f -name '*.whl')
echo "Original wheel file: ${wheel_file}"
platform_name="${{ matrix.plat-name }}"
echo "Using platform name: ${platform_name}"
new_wheel_file=$(echo ${wheel_file} | sed "s/\(-any\)\?\.whl$/-${platform_name}.whl/")
echo "Renaming wheel file to: ${new_wheel_file}"
mv "${wheel_file}" "${new_wheel_file}"
working-directory: wrappers/python

- name: Run tests
Expand All @@ -297,6 +309,7 @@ jobs:
- if: ${{ runner.os == 'Linux' }}
name: Audit wheel
run: |
pip install auditwheel
auditwheel show wrappers/python/dist/* | tee auditwheel.log
grep -q manylinux_2_17_ auditwheel.log
Expand Down

0 comments on commit fd8b269

Please sign in to comment.