From 76fe47263850f82e82089cfd3f0d3e8063bc6db9 Mon Sep 17 00:00:00 2001 From: Pavel Savchenko Date: Sat, 12 Dec 2020 21:18:19 +0000 Subject: [PATCH] Support docker qemu emulation in any linux env - currently just prints out envs --- .github/workflows/test.yml | 7 +++++++ cibuildwheel/linux.py | 2 ++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3ab6656c..ab4d6fa8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -47,6 +47,13 @@ jobs: id: pr-labels uses: joerick/pr-labels-action@v1.0.6 + - name: Set up QEMU + id: qemu + uses: docker/setup-qemu-action@v1 + with: + platforms: all + if: runner.os == "Linux" + - name: Sample build if: contains(steps.pr-labels.outputs.labels, ' ci-sample-build ') run: | diff --git a/cibuildwheel/linux.py b/cibuildwheel/linux.py index cfd4952c..d0f36a9d 100644 --- a/cibuildwheel/linux.py +++ b/cibuildwheel/linux.py @@ -13,6 +13,8 @@ from .util import (BuildOptions, BuildSelector, NonPlatformWheelError, def matches_platform(identifier: str) -> bool: + output = subprocess.check_output(['docker', '--version']) + print("We found support for these platforms:", output) pm = platform.machine() if pm == "x86_64": # x86_64 machines can run i686 docker containers