瀏覽代碼

Re-enable Android wheels build

This reverts commit acfa23916a312dedeb5fff1ed199d1a1548cc291.
Malcolm Smith 3 月之前
父節點
當前提交
405ef76f91
共有 1 個文件被更改,包括 22 次插入25 次删除
  1. 22 25
      .github/workflows/python-distributions.yml

+ 22 - 25
.github/workflows/python-distributions.yml

@@ -88,30 +88,27 @@ jobs:
           name: artifact-${{ matrix.build-identifier }}
           path: ./wheelhouse/*.whl
 
-  # Android wheels build disabled due to HTTP 403 Forbidden error when downloading
-  # Python 3.13.7 for Android from Maven repository (python-3.13.7-aarch64-linux-android.tar.gz)
-  # The download from https://repo.maven.apache.org fails during cibuildwheel setup
-  # build-android-wheels:
-  #   runs-on: ubuntu-latest
-  #   steps:
-  #     - uses: actions/checkout@v5.0.0
-  #     - uses: actions/setup-python@v6
-  #       with:
-  #         cache: pip
-  #     - name: Install dependencies
-  #       run: |
-  #         python -m pip install --upgrade pip
-  #         pip install setuptools wheel cibuildwheel setuptools-rust
-  #     - name: Build Android wheels
-  #       run: python -m cibuildwheel --output-dir wheelhouse
-  #       env:
-  #         CIBW_PLATFORM: android
-  #         CIBW_ARCHS_ANDROID: arm64_v8a x86_64
-  #     - name: Upload Android wheels
-  #       uses: actions/upload-artifact@v4.6.2
-  #       with:
-  #         name: artifact-android
-  #         path: ./wheelhouse/*.whl
+  build-android-wheels:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v5.0.0
+      - uses: actions/setup-python@v6
+        with:
+          cache: pip
+      - name: Install dependencies
+        run: |
+          python -m pip install --upgrade pip
+          pip install setuptools wheel cibuildwheel setuptools-rust
+      - name: Build Android wheels
+        run: python -m cibuildwheel --output-dir wheelhouse
+        env:
+          CIBW_PLATFORM: android
+          CIBW_ARCHS_ANDROID: arm64_v8a x86_64
+      - name: Upload Android wheels
+        uses: actions/upload-artifact@v4.6.2
+        with:
+          name: artifact-android
+          path: ./wheelhouse/*.whl
 
   build-pure-wheels:
     runs-on: ubuntu-latest
@@ -175,7 +172,7 @@ jobs:
     runs-on: ubuntu-latest
     needs:
       - build-wheels
-      # - build-android-wheels
+      - build-android-wheels
       - build-sdist
       - build-pure-wheels
     if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/dulwich-')