Build Linux wheels
This commit is contained in:
parent
aae8d155f1
commit
62d45ba132
2 changed files with 45 additions and 2 deletions
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
|
@ -21,6 +21,7 @@ jobs:
|
|||
|
||||
env:
|
||||
BASE_IMAGE: ${{ matrix.docker_image }}
|
||||
ARCH: ${{ matrix.arch }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -46,6 +47,9 @@ jobs:
|
|||
# sure it installs in a clean image without any hidden dependencies.
|
||||
run: docker run --rm -v $(pwd):/mnt:rw ${{ matrix.docker_image }} /mnt/ci/docker-deb-test
|
||||
|
||||
- name: Build wheels
|
||||
run: sudo make python-dists-$ARCH
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
|
|
43
Makefile
43
Makefile
|
@ -30,17 +30,56 @@ release: python-dists
|
|||
> sha256sums
|
||||
|
||||
.PHONY: python-dists
|
||||
python-dists: VERSION.h
|
||||
python-dists: python-dists-amd64 python-dists-arm64 python-dists-ppc64le python-dists-s390x
|
||||
|
||||
.PHONY: python-dists-amd64
|
||||
python-dists-x86_64: VERSION.h
|
||||
python setup.py sdist
|
||||
docker run \
|
||||
--user $$(id -u):$$(id -g) \
|
||||
-v $(PWD)/dist:/dist:rw \
|
||||
-v `pwd`/dist:/dist:rw \
|
||||
quay.io/pypa/manylinux1_x86_64:latest \
|
||||
bash -exc ' \
|
||||
/opt/python/cp35-cp35m/bin/pip wheel --wheel-dir /tmp /dist/*.tar.gz && \
|
||||
auditwheel repair --wheel-dir /dist /tmp/*.whl --wheel-dir /dist \
|
||||
'
|
||||
|
||||
.PHONY: python-dists-arm64
|
||||
python-dists-aarch64: VERSION.h
|
||||
python setup.py sdist
|
||||
docker run \
|
||||
--user $$(id -u):$$(id -g) \
|
||||
-v `pwd`/dist:/dist:rw \
|
||||
quay.io/pypa/manylinux2014_aarch64:latest \
|
||||
bash -exc ' \
|
||||
/opt/python/cp38-cp38/bin/pip wheel --wheel-dir /tmp /dist/*.tar.gz && \
|
||||
auditwheel repair --wheel-dir /dist /tmp/*.whl --wheel-dir /dist \
|
||||
'
|
||||
|
||||
.PHONY: python-dists-ppc64le
|
||||
python-dists-ppc64le: VERSION.h
|
||||
python setup.py sdist
|
||||
docker run \
|
||||
--user $$(id -u):$$(id -g) \
|
||||
-v `pwd`/dist:/dist:rw \
|
||||
quay.io/pypa/manylinux2014_ppc64le:latest \
|
||||
bash -exc ' \
|
||||
/opt/python/cp38-cp38/bin/pip wheel --wheel-dir /tmp /dist/*.tar.gz && \
|
||||
auditwheel repair --wheel-dir /dist /tmp/*.whl --wheel-dir /dist \
|
||||
'
|
||||
|
||||
.PHONY: python-dists-s390x
|
||||
python-dists-s390x: VERSION.h
|
||||
python setup.py sdist
|
||||
docker run \
|
||||
--user $$(id -u):$$(id -g) \
|
||||
-v `pwd`/dist:/dist:rw \
|
||||
quay.io/pypa/manylinux2014_s390x:latest \
|
||||
bash -exc ' \
|
||||
/opt/python/cp38-cp38/bin/pip wheel --wheel-dir /tmp /dist/*.tar.gz && \
|
||||
auditwheel repair --wheel-dir /dist /tmp/*.whl --wheel-dir /dist \
|
||||
'
|
||||
|
||||
.PHONY: builddeb
|
||||
builddeb:
|
||||
debuild --set-envvar=CC=musl-gcc -us -uc -b
|
||||
|
|
Loading…
Reference in a new issue