mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 22:36:30 +03:00
ci: build aarch64 wheels
Also drop python 3.6, aarch64 wheels fail to build there
This commit is contained in:
@@ -15,6 +15,7 @@ git ls-files >.rsynclist
|
|||||||
# we seem to need .git for setuptools_scm versioning
|
# we seem to need .git for setuptools_scm versioning
|
||||||
find .git >>.rsynclist
|
find .git >>.rsynclist
|
||||||
rsync --delete --files-from=.rsynclist -az ./ "$SSHTARGET:$BUILDDIR"
|
rsync --delete --files-from=.rsynclist -az ./ "$SSHTARGET:$BUILDDIR"
|
||||||
|
rsync --delete --files-from=.rsynclist -az ./ "$SSHTARGET:$BUILDDIR-arm64"
|
||||||
|
|
||||||
set +x
|
set +x
|
||||||
|
|
||||||
@@ -26,24 +27,41 @@ set +x
|
|||||||
# everything is terminated/cleaned up and we have no orphaned
|
# everything is terminated/cleaned up and we have no orphaned
|
||||||
# useless still-running docker-containers consuming resources.
|
# useless still-running docker-containers consuming resources.
|
||||||
|
|
||||||
ssh $SSHTARGET bash -c "cat >$BUILDDIR/exec_docker_run" <<_HERE
|
for arch in "" "-arm64"; do
|
||||||
|
|
||||||
|
ssh $SSHTARGET bash -c "cat >${BUILDDIR}${arch}/exec_docker_run" <<_HERE
|
||||||
set +x -e
|
set +x -e
|
||||||
shopt -s huponexit
|
shopt -s huponexit
|
||||||
cd $BUILDDIR
|
cd ${BUILDDIR}${arch}
|
||||||
export DCC_NEW_TMP_EMAIL=$DCC_NEW_TMP_EMAIL
|
export DCC_NEW_TMP_EMAIL=$DCC_NEW_TMP_EMAIL
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
# run everything else inside docker
|
# run everything else inside docker
|
||||||
docker run -e DCC_NEW_TMP_EMAIL \
|
docker run -e DCC_NEW_TMP_EMAIL \
|
||||||
--rm -it -v \$(pwd):/mnt -w /mnt \
|
--rm -it -v \$(pwd):/mnt -w /mnt \
|
||||||
deltachat/coredeps scripts/run_all.sh
|
deltachat/coredeps${arch} scripts/run_all.sh
|
||||||
|
|
||||||
_HERE
|
_HERE
|
||||||
|
|
||||||
|
done
|
||||||
|
|
||||||
echo "--- Running $CIRCLE_JOB remotely"
|
echo "--- Running $CIRCLE_JOB remotely"
|
||||||
|
|
||||||
|
echo "--- Building aarch64 wheels"
|
||||||
|
ssh -t $SSHTARGET bash "$BUILDDIR-arm64/exec_docker_run"
|
||||||
|
|
||||||
|
echo "--- Building x86_64 wheels"
|
||||||
ssh -t $SSHTARGET bash "$BUILDDIR/exec_docker_run"
|
ssh -t $SSHTARGET bash "$BUILDDIR/exec_docker_run"
|
||||||
|
|
||||||
mkdir -p workspace
|
mkdir -p workspace
|
||||||
rsync -avz "$SSHTARGET:$BUILDDIR/python/.docker-tox/wheelhouse/*manylinux201*" workspace/wheelhouse/
|
|
||||||
rsync -avz "$SSHTARGET:$BUILDDIR/python/.docker-tox/dist/*" workspace/wheelhouse/
|
# Wheels
|
||||||
|
for arch in "" "-arm64"; do
|
||||||
|
rsync -avz "$SSHTARGET:$BUILDDIR${arch}/python/.docker-tox/wheelhouse/*manylinux201*" workspace/wheelhouse/
|
||||||
|
done
|
||||||
|
|
||||||
|
# Source packages
|
||||||
|
rsync -avz "$SSHTARGET:$BUILDDIR${arch}/python/.docker-tox/dist/*" workspace/wheelhouse/
|
||||||
|
|
||||||
|
# Documentation
|
||||||
rsync -avz "$SSHTARGET:$BUILDDIR/python/doc/_build/" workspace/py-docs
|
rsync -avz "$SSHTARGET:$BUILDDIR/python/doc/_build/" workspace/py-docs
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ mkdir -p $TOXWORKDIR
|
|||||||
# Note that the independent remote_tests_python step does all kinds of
|
# Note that the independent remote_tests_python step does all kinds of
|
||||||
# live-testing already.
|
# live-testing already.
|
||||||
unset DCC_NEW_TMP_EMAIL
|
unset DCC_NEW_TMP_EMAIL
|
||||||
tox --workdir "$TOXWORKDIR" -e py36,py37,py38,py39,auditwheels
|
tox --workdir "$TOXWORKDIR" -e py37,py38,py39,auditwheels
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user