|
87 | 87 | - platform: linux/amd64 |
88 | 88 | runs-on: ubuntu-latest |
89 | 89 | download-jars: true # Only Linux downloads JARs |
| 90 | + - platform: linux/arm64 |
| 91 | + runs-on: ubuntu-latest |
| 92 | + download-jars: false # Use JARs from linux/amd64 |
90 | 93 | - platform: darwin/amd64 |
91 | 94 | runs-on: macos-13 |
92 | 95 | download-jars: false |
@@ -145,14 +148,20 @@ jobs: |
145 | 148 | python-version: '3.11' |
146 | 149 |
|
147 | 150 | - name: Set up Java (for native builds on macOS/Windows) |
148 | | - if: matrix.platform != 'linux/amd64' |
| 151 | + if: matrix.platform != 'linux/amd64' && matrix.platform != 'linux/arm64' |
149 | 152 | uses: actions/setup-java@7a6d8a8234af8eb26422e24e3006232cccaa061b # v4.6.0 |
150 | 153 | with: |
151 | 154 | distribution: 'temurin' |
152 | 155 | java-version: '21' |
153 | 156 |
|
| 157 | + - name: Set up QEMU (for linux/arm64 emulation) |
| 158 | + if: matrix.platform == 'linux/arm64' |
| 159 | + uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0 |
| 160 | + with: |
| 161 | + platforms: linux/arm64 |
| 162 | + |
154 | 163 | - name: Set up Docker Buildx (Linux only) |
155 | | - if: matrix.platform == 'linux/amd64' |
| 164 | + if: matrix.platform == 'linux/amd64' || matrix.platform == 'linux/arm64' |
156 | 165 | uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 |
157 | 166 |
|
158 | 167 | - name: Install Python build dependencies |
@@ -214,12 +223,12 @@ jobs: |
214 | 223 | echo "📦 Wheels:" |
215 | 224 | ls dist/*.whl |
216 | 225 |
|
217 | | - # Count wheels (should be 4: one for each platform) |
| 226 | + # Count wheels (should be 5: one for each platform) |
218 | 227 | WHEEL_COUNT=$(ls dist/*.whl | wc -l) |
219 | | - echo "📊 Wheel count: $WHEEL_COUNT (expected: 4)" |
| 228 | + echo "📊 Wheel count: $WHEEL_COUNT (expected: 5)" |
220 | 229 |
|
221 | | - if [ "$WHEEL_COUNT" -ne 4 ]; then |
222 | | - echo "❌ Expected 4 wheels (4 platforms), got $WHEEL_COUNT" |
| 230 | + if [ "$WHEEL_COUNT" -ne 5 ]; then |
| 231 | + echo "❌ Expected 5 wheels (5 platforms), got $WHEEL_COUNT" |
223 | 232 | exit 1 |
224 | 233 | fi |
225 | 234 |
|
|
0 commit comments