microsoft/onnxruntime-extensions

Public

mirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
176c1d013864044bcc0747b908bdd32048669401

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/linux_arm64_wheel.yaml

45lines · modecode

1name: build wheel linux aarch64
2
3on:
4 pull_request_target:
5 types:
6 - closed
7 branches:
8 - 'main'
9
10jobs:
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