-
Notifications
You must be signed in to change notification settings - Fork 5
61 lines (59 loc) · 1.72 KB
/
build_arm.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build ARM
on: [push, pull_request]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
# - os: ubuntu-latest
# cibw_archs: "native"
- os: ubuntu-latest
cibw_archs: "aarch64"
# - os: windows-latest
# cibw_archs: "native ARM64"
# - os: macos-latest
# cibw_archs: "native arm64"
steps:
- name: Set up QEMU
if: matrix.cibw_archs == 'aarch64'
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- uses: actions/checkout@v3
- uses: actions/[email protected]
name: Install Python
- name: Get submodules
run: git submodule update --init --recursive
- name: Build wheels
uses: pypa/[email protected]
env:
CIBW_ARCHS: ${{ matrix.cibw_archs }}
CIBW_SKIP: "pp*"
- uses: actions/upload-artifact@v3
with:
path: ./wheelhouse/*.whl
# publish:
# needs: build_wheels
# name: Publish to PyPI
# runs-on: ubuntu-latest
# steps:
# - name: Set up Python
# uses: actions/[email protected]
# with:
# python-version: '3.x'
# - name: Install twine
# run: |
# python -m pip install --upgrade pip
# pip install twine
# - name: Download Artifacts
# uses: actions/download-artifact@v3
# with:
# name: wheels
# path: ./wheelhouse
# - name: Publish
# env:
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
# run: twine upload ./wheelhouse/* --skip-existing