|
64 | 64 | path: dist/*.whl |
65 | 65 | retention-days: 1 |
66 | 66 |
|
67 | | - build_wheels_apple_silicon: |
| 67 | + build_wheels_linux_arm64: |
| 68 | + name: Build wheels on ${{ matrix.os }} |
| 69 | + runs-on: ${{ matrix.os }} |
| 70 | + strategy: |
| 71 | + matrix: |
| 72 | + os: [ubuntu-22.04] |
| 73 | + cibw_archs: ["aarch64"] |
| 74 | + cibw_build: ["cp39", "cp310", "cp311", "cp312", "cp313"] |
| 75 | + |
| 76 | + steps: |
| 77 | + - uses: actions/checkout@v4 |
| 78 | + |
| 79 | + - name: Set up QEMU |
| 80 | + uses: docker/setup-qemu-action@v3 |
| 81 | + with: |
| 82 | + platforms: arm64 |
| 83 | + |
| 84 | + - name: Set up Python |
| 85 | + uses: actions/setup-python@v5 |
| 86 | + with: |
| 87 | + python-version: '3.10' |
| 88 | + |
| 89 | + - name: Build wheels using cibuildwheel |
| 90 | + |
| 91 | + env: |
| 92 | + CIBW_SKIP: "*-musllinux*" |
| 93 | + CIBW_BUILD: ${{ matrix.cibw_build }}-* |
| 94 | + CIBW_BUILD_VERBOSITY: 3 |
| 95 | + CIBW_BEFORE_ALL_LINUX: bash ci-utils/install_prereq_linux.sh && |
| 96 | + mkdir -p /tmp/filepattern_bld && |
| 97 | + cp -r local_install /tmp/filepattern_bld |
| 98 | + CIBW_ENVIRONMENT_LINUX: LD_LIBRARY_PATH="/tmp/filepattern_bld/local_install/lib:/tmp/filepattern_bld/local_install/lib64:$LD_LIBRARY_PATH" ON_GITHUB="TRUE" FILEPATTERN_DEP_DIR="/tmp/filepattern_bld/local_install" |
| 99 | + CIBW_ARCHS_LINUX: ${{ matrix.cibw_archs }} |
| 100 | + CIBW_TEST_REQUIRES: pytest pydantic |
| 101 | + CIBW_TEST_COMMAND: pytest {project}/tests/ |
| 102 | + with: |
| 103 | + package-dir: . |
| 104 | + |
| 105 | + - name: Upload Artifact |
| 106 | + uses: actions/upload-artifact@v4 |
| 107 | + with: |
| 108 | + name: filepattern-wheels-${{ matrix.os }}-${{ matrix.cibw_archs }}-${{ matrix.cibw_build }} |
| 109 | + path: dist/*.whl |
| 110 | + retention-days: 1 |
| 111 | + |
| 112 | + |
| 113 | + build_wheels_apple_arm64: |
68 | 114 | name: Build wheels on ${{ matrix.os }} |
69 | 115 | runs-on: ${{ matrix.os }} |
70 | 116 | env: |
|
0 commit comments