FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Add Linux AArch64 wheel build support · ag-python/pytype@917fc16 · GitHub

forked from google/pytype

Commit 917fc16

Browse files
committed
Add Linux AArch64 wheel build support
Signed-off-by: odidev <odidev@puresoftware.com>
1 parent 7824bbe commit 917fc16

2 files changed

Lines changed: 22 additions & 12 deletions

File tree

‎.github/workflows/build.yml‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,33 @@ on:
1515
workflow_dispatch:
1616
jobs:
1717
manylinux_wheels:
18-
name: Python ${{ matrix.python_tag }} ${{ matrix.platform }} wheels
18+
name: Python ${{ matrix.platform }} wheels(${{ matrix.pyver }})
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
2222
platform:
2323
- manylinux2014_x86_64
24+
- manylinux2014_aarch64
25+
pyver: [cp36-cp36m, cp37-cp37m, cp38-cp38, cp39-cp39]
2426
steps:
2527
- uses: actions/checkout@v2
2628
with:
2729
submodules: recursive
30+
- name: Set up QEMU
31+
if: matrix.platform == 'manylinux2014_aarch64'
32+
id: qemu
33+
uses: docker/setup-qemu-action@v1
2834
- name: Pull Docker image
2935
run: |
3036
DOCKER_IMAGE="quay.io/pypa/${{ matrix.platform }}"
3137
echo "DOCKER_IMAGE=$DOCKER_IMAGE" >> $GITHUB_ENV
3238
docker image pull "$DOCKER_IMAGE"
3339
- name: Build manylinux wheels
34-
env:
35-
PYTHON_TAGS: 'cp36-cp36m cp37-cp37m cp38-cp38 cp39-cp39'
3640
run: |
3741
docker container run \
3842
--rm \
3943
-e PLAT=${{ matrix.platform }} \
40-
-e PYTHON_TAGS="$PYTHON_TAGS" \
44+
-e PYTHON_TAGS=${{ matrix.pyver }} \
4145
-v "$(pwd):/io" \
4246
"$DOCKER_IMAGE" \
4347
/io/build_scripts/wheels/manylinux.sh

‎build_scripts/wheels/manylinux.sh‎

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fi
1111
yum install -y gettext-devel python3-devel # gettext is for flex
1212

1313
# TODO: what should be the update cadence for these?
14-
NINJA_VERSION='1.10.0'
14+
NINJA_VERSION='1.7.2'
1515
BISON_VERSION='3.6'
1616
FLEX_VERSION='2.6.4'
1717

@@ -22,13 +22,19 @@ untar() {
2222
}
2323

2424
# Install ninja/ninja-build (requires CMake)
25-
curl -sSL \
26-
-o ninja.zip \
27-
"https://github.com/ninja-build/ninja/releases/download/v${NINJA_VERSION}/ninja-linux.zip"
28-
unzip ninja.zip
29-
mv ninja /usr/local/bin/
30-
rm -vf ninja*
31-
ln -s /usr/local/bin/ninja /usr/local/bin/ninja-build
25+
if [ `uname -m` == "aarch64" ]; then
26+
yum install -y epel-release
27+
yum-config-manager --enable epel
28+
yum install -y ninja-build
29+
ln -s /usr/bin/ninja-build /usr/bin/ninja
30+
else
31+
curl -sSL \
32+
-o ninja.zip \
33+
"https://github.com/ninja-build/ninja/releases/download/v${NINJA_VERSION}/ninja-linux.zip"
34+
unzip ninja.zip
35+
mv ninja /usr/local/bin/
36+
rm -vf ninja*
37+
fi
3238

3339
TD="$(mktemp -d)"
3440
pushd "$TD" || exit 1

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL