Support docker qemu emulation in any linux env
- currently just prints out envs
This commit is contained in:
@@ -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: |
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user