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 4bab1c5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 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 Down

0 comments on commit 4bab1c5

Please sign in to comment.