microsoft/onnxruntime-extensions
Publicmirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable
.github/workflows/linux_arm64_wheel.yaml
45lines · modecode
| 1 | name: build wheel linux aarch64 |
| 2 | |
| 3 | on: |
| 4 | pull_request_target: |
| 5 | types: |
| 6 | - closed |
| 7 | branches: |
| 8 | - 'main' |
| 9 | |
| 10 | jobs: |
| 11 | cibuildwheel: |
| 12 | if: github.event.pull_request.merged == true |
| 13 | runs-on: ubuntu-latest |
| 14 | strategy: |
| 15 | matrix: |
| 16 | python_version: ['3.7', '3.8', '3.9', '3.10', '3.11'] |
| 17 | steps: |
| 18 | - name: Checkout repository |
| 19 | uses: actions/checkout@v3 |
| 20 | |
| 21 | - name: Setup Python |
| 22 | uses: actions/setup-python@v4 |
| 23 | with: |
| 24 | python-version: ${{ matrix.python_version }} |
| 25 | |
| 26 | - name: Set up QEMU |
| 27 | uses: docker/setup-qemu-action@v2 |
| 28 | |
| 29 | - name: Set up Docker Buildx |
| 30 | uses: docker/setup-buildx-action@v2 |
| 31 | |
| 32 | - name: Create wheels linux aarch64 |
| 33 | run: | |
| 34 | PYTHON_VERSION=${{ matrix.python_version }} |
| 35 | CIBW_BUILD="cp${PYTHON_VERSION//.}-*" |
| 36 | export CIBW_BUILD |
| 37 | export CIBW_SKIP=*musllinux* # skip musllinux builds since numpy hasn't support it yet. |
| 38 | pip install cibuildwheel |
| 39 | python -m cibuildwheel --platform linux --archs aarch64 --output-dir ./out |
| 40 | |
| 41 | - name: Upload artifact |
| 42 | uses: actions/upload-artifact@v2 |
| 43 | with: |
| 44 | name: wheels |
| 45 | path: ./out |
| 46 | |