Skip to content

Commit 0932ece

Browse files
authored
Merge pull request #2 from odidev/odidev_cChardet
Add linux aarch64 wheel support
2 parents 59c1c17 + 0bec63f commit 0932ece

1 file changed

Lines changed: 49 additions & 0 deletions

File tree

.github/workflows/build-linux.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,52 @@ jobs:
9292
with:
9393
name: wheels
9494
path: ./wheelhouse
95+
96+
build_wheels_aarch64:
97+
name: Build wheels on ${{ matrix.os }}, ${{ matrix.arch }}
98+
runs-on: ${{ matrix.os }}
99+
strategy:
100+
matrix:
101+
os: [ubuntu-18.04]
102+
arch: [aarch64]
103+
104+
steps:
105+
- uses: actions/checkout@v2
106+
107+
- uses: actions/setup-python@v1
108+
name: Install Python 3.8
109+
with:
110+
python-version: "3.8"
111+
112+
- name: Install cibuildwheel
113+
run: |
114+
python -m pip install cibuildwheel~=1.8.0
115+
116+
- uses: docker/setup-qemu-action@v1
117+
name: Set up QEMU
118+
119+
- name: Checkout submodules
120+
shell: bash
121+
run: |
122+
git submodule sync --recursive
123+
git submodule update --init --force --recursive --depth=1
124+
125+
- name: Build wheel
126+
if: contains(github.ref, 'tags/')
127+
run: |
128+
python -m cibuildwheel --output-dir wheelhouse
129+
env:
130+
CIBW_BUILD: cp36-* cp37-* cp38-* cp39-*
131+
CIBW_ARCHS_LINUX: ${{ matrix.arch }}
132+
CIBW_BEFORE_BUILD: python -m pip install --upgrade pip
133+
&& python -m pip install tox
134+
CIBW_TEST_REQUIRES: tox
135+
CIBW_TEST_COMMAND: cd /project
136+
&& python -m pip install -r requirements-dev.txt
137+
&& /opt/python/*/bin/tox -e py
138+
139+
- uses: actions/upload-artifact@v1
140+
if: contains(github.ref, 'tags/')
141+
with:
142+
name: wheels
143+
path: ./wheelhouse

0 commit comments

Comments
 (0)