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
|
id: pr-labels
|
||||||
uses: joerick/pr-labels-action@v1.0.6
|
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
|
- name: Sample build
|
||||||
if: contains(steps.pr-labels.outputs.labels, ' ci-sample-build ')
|
if: contains(steps.pr-labels.outputs.labels, ' ci-sample-build ')
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ from .util import (BuildOptions, BuildSelector, NonPlatformWheelError,
|
|||||||
|
|
||||||
|
|
||||||
def matches_platform(identifier: str) -> bool:
|
def matches_platform(identifier: str) -> bool:
|
||||||
|
output = subprocess.check_output(['docker', '--version'])
|
||||||
|
print("We found support for these platforms:", output)
|
||||||
pm = platform.machine()
|
pm = platform.machine()
|
||||||
if pm == "x86_64":
|
if pm == "x86_64":
|
||||||
# x86_64 machines can run i686 docker containers
|
# x86_64 machines can run i686 docker containers
|
||||||
|
|||||||
Reference in New Issue
Block a user