File tree Expand file tree Collapse file tree 2 files changed +22
-4
lines changed
Expand file tree Collapse file tree 2 files changed +22
-4
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ jobs:
121121 # Verify wheel structure
122122 twine check dist/*
123123
124- - name : Build macOS wheel (Universal)
124+ - name : Build macOS wheel
125125 if : runner.os == 'macOS'
126126 run : |
127127 # Create necessary directories
@@ -138,13 +138,25 @@ jobs:
138138 # Download native artifacts
139139 python scripts/download_artifacts.py $C2PA_VERSION
140140
141+ # Set platform name based on architecture
142+ if [ "${{ inputs.architecture }}" = "universal2" ]; then
143+ PLATFORM_NAME="macosx_10_9_universal2"
144+ elif [ "${{ inputs.architecture }}" = "aarch64" ]; then
145+ PLATFORM_NAME="macosx_11_0_arm64"
146+ elif [ "${{ inputs.architecture }}" = "x86_64" ]; then
147+ PLATFORM_NAME="macosx_10_9_x86_64"
148+ else
149+ echo "Unknown architecture: ${{ inputs.architecture }}"
150+ exit 1
151+ fi
152+
141153 # Build wheel
142- python setup.py bdist_wheel --plat-name macosx_10_9_universal2
154+ python setup.py bdist_wheel --plat-name $PLATFORM_NAME
143155
144156 # Rename wheel to ensure unique filename
145157 cd dist
146158 for wheel in *.whl; do
147- mv "$wheel" "${wheel/macosx_10_9_universal2/macosx_10_9_universal2 }"
159+ mv "$wheel" "${wheel/$PLATFORM_NAME/$PLATFORM_NAME }"
148160 done
149161 cd ..
150162
Original file line number Diff line number Diff line change @@ -342,6 +342,10 @@ jobs:
342342 include :
343343 - target : universal2
344344 runs-on : macos-latest
345+ - target : aarch64
346+ runs-on : macos-latest
347+ - target : x86_64
348+ runs-on : macos-13
345349
346350 if : |
347351 github.event_name != 'pull_request' ||
@@ -359,7 +363,9 @@ jobs:
359363 include :
360364 - target : universal2
361365 runs-on : macos-latest
362- - target : universal2
366+ - target : aarch64
367+ runs-on : macos-latest
368+ - target : x86_64
363369 runs-on : macos-13
364370
365371 if : |
You can’t perform that action at this time.
0 commit comments