File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,12 +49,14 @@ jobs:
4949 pyarch : x64
5050 asset : " liblsl-${LSL_RELEASE}-Win_amd64.zip"
5151 extract : " unzip -oj liblsl.zip '*/bin/lsl.dll' -d src/pylsl/lib"
52+ platform_tag : " win_amd64"
5253 - name : " Windows x86"
5354 os : windows-latest
5455 arch : i386
5556 pyarch : x86
5657 asset : " liblsl-${LSL_RELEASE}-Win_i386.zip"
5758 extract : " unzip -oj liblsl.zip '*/bin/lsl.dll' -d src/pylsl/lib"
59+ platform_tag : " win32"
5860 - name : " macOS universal"
5961 os : macos-latest
6062 arch : universal
6466 unzip xcframework.zip
6567 cp lsl.xcframework/macos-arm64_x86_64/lsl.framework/Versions/A/lsl src/pylsl/lib/liblsl.dylib
6668 codesign -s - -f src/pylsl/lib/liblsl.dylib
69+ platform_tag : " macosx_11_0_universal2"
6770 - name : " Linux x86_64"
6871 os : ubuntu-22.04
6972 arch : x86_64
@@ -114,6 +117,14 @@ jobs:
114117 - name : Build wheel
115118 run : uv build --wheel
116119
120+ - name : Tag wheel with platform
121+ if : matrix.config.platform_tag
122+ run : |
123+ pip install wheel
124+ wheel tags --platform-tag ${{ matrix.config.platform_tag }} dist/*.whl
125+ rm -f dist/*-none-any.whl
126+ ls -la dist/
127+
117128 - name : Inspect wheel contents
118129 run : |
119130 python -m zipfile -l dist/*.whl | grep -E '\.(dll|so|dylib)' || echo "No native libraries found in wheel!"
@@ -158,5 +169,4 @@ jobs:
158169 uses : astral-sh/setup-uv@v4
159170
160171 - name : Publish to PyPI
161- if : github.event_name == 'release'
162- run : uv publish dist/*
172+ run : uv publish dist/* ${{ github.event_name != 'release' && '--dry-run -v' || '' }}
You can’t perform that action at this time.
0 commit comments