@@ -62,43 +62,19 @@ jobs:
6262 - name : Build wheel (Unix)
6363 if : runner.os != 'Windows'
6464 run : |
65- # Extract platform info from artifact name
66- PLATFORM=$(echo "${{ inputs.artifact-name }}" | cut -d'-' -f2)
67- ARCH=$(echo "${{ inputs.artifact-name }}" | cut -d'-' -f3)
68- # Set platform identifier based on platform and architecture
69- if [ "$PLATFORM" = "linux" ]; then
70- if [ "$ARCH" = "x86_64" ]; then
71- export PLATFORM_ID="manylinux_2_17_x86_64"
72- elif [ "$ARCH" = "aarch64" ]; then
73- export PLATFORM_ID="manylinux_2_17_aarch64"
74- fi
75- elif [ "$PLATFORM" = "macos" ]; then
76- if [ "$ARCH" = "x86_64" ]; then
77- export PLATFORM_ID="macosx_x86_64"
78- elif [ "$ARCH" = "aarch64" ]; then
79- export PLATFORM_ID="macosx_arm64"
80- fi
81- fi
82- # Build wheel with platform identifier
83- python setup.py bdist_wheel --plat-name=$PLATFORM_ID
65+ # Download native libraries for current platform
66+ python3 scripts/download_artifacts.py c2pa-v0.55.0
67+ # Build wheel
68+ python setup.py bdist_wheel
8469
8570 - name : Build wheel (Windows)
8671 if : runner.os == 'Windows'
8772 shell : pwsh
8873 run : |
89- # Extract platform info from artifact name
90- $artifactName = "${{ inputs.artifact-name }}"
91- $parts = $artifactName -split '-'
92- $PLATFORM = $parts[1]
93- $ARCH = $parts[2]
94- # Set platform identifier
95- if ($ARCH -eq "x64") {
96- $env:PLATFORM_ID = "win_amd64"
97- } elseif ($ARCH -eq "x86") {
98- $env:PLATFORM_ID = "win32"
99- }
100- # Build wheel with platform identifier
101- python setup.py bdist_wheel --plat-name=$env:PLATFORM_ID
74+ # Download native libraries for current platform
75+ python scripts/download_artifacts.py c2pa-v0.55.0
76+ # Build wheel
77+ python setup.py bdist_wheel
10278 - name : Upload wheels
10379 uses : actions/upload-artifact@v4
10480 with :
0 commit comments