From 543f0778292b3d598784192b1798a2e445bbba18 Mon Sep 17 00:00:00 2001 From: William Barnhart Date: Thu, 6 Oct 2022 14:09:30 -0400 Subject: [PATCH] Update support for Linux ARM on GitLab --- README.md | 2 +- examples/gitlab-with-qemu.yml | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 examples/gitlab-with-qemu.yml diff --git a/README.md b/README.md index bfb40a63..a9335319 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ Usage | Travis CI | ✅ | | ✅ | ✅ | | | AppVeyor | ✅ | ✅ | ✅ | | ✅² | | CircleCI | ✅ | ✅ | | | ✅² | -| Gitlab CI | ✅ | | | | | +| Gitlab CI | ✅ | | | ✅¹ | | | Cirrus CI | ✅ | ✅³ | ✅ | ✅ | ✅ | ¹ [Requires emulation](https://cibuildwheel.readthedocs.io/en/stable/faq/#emulation), distributed separately. Other services may also support Linux ARM through emulation or third-party build hosts, but these are not tested in our CI.
diff --git a/examples/gitlab-with-qemu.yml b/examples/gitlab-with-qemu.yml new file mode 100644 index 00000000..a67d491a --- /dev/null +++ b/examples/gitlab-with-qemu.yml @@ -0,0 +1,21 @@ +linux: + image: python:3.8 + # make a docker daemon available for cibuildwheel to use + services: + - name: docker:dind + entrypoint: ["env", "-u", "DOCKER_HOST"] + command: ["dockerd-entrypoint.sh"] + variables: + DOCKER_HOST: tcp://docker:2375/ + DOCKER_DRIVER: overlay2 + # See https://github.com/docker-library/docker/pull/166 + DOCKER_TLS_CERTDIR: "" + script: + - curl -sSL https://get.docker.com/ | sh + # Warning: This is extremely slow, be careful with how many wheels you build + - docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + - python -m pip install cibuildwheel==2.10.2 + - cibuildwheel --output-dir wheelhouse + artifacts: + paths: + - wheelhouse/