Skip to content

Commit 650f693

Browse files
authored
Merge pull request #4 from MobSF/arm_builds
Support Linux aarch (ARM) builds
2 parents 014376e + 29f66f6 commit 650f693

File tree

2 files changed

+66
-1
lines changed

2 files changed

+66
-1
lines changed

.github/workflows/build_arm.yml

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

.github/workflows/build_publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ jobs:
6767
env:
6868
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
6969
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
70-
run: twine upload ./wheels/*
70+
run: twine upload ./wheels/* --skip-existing

0 commit comments

Comments
 (0)