File tree Expand file tree Collapse file tree 1 file changed +11
-10
lines changed
Expand file tree Collapse file tree 1 file changed +11
-10
lines changed Original file line number Diff line number Diff line change 1- name : Build Python-miio for ARMv7 using QEMU
1+ name : Build Python-miio for ARMv7 using Docker and QEMU
22
33on :
44 push :
@@ -21,19 +21,20 @@ jobs:
2121 with :
2222 platforms : arm
2323
24- - name : Set up Python for ARMv7
24+ - name : Register QEMU static binaries
2525 run : |
26- sudo apt-get update
27- sudo apt-get install -y qemu-user-static binfmt-support
28- sudo update-binfmts --install arm /usr/bin/qemu-arm-static --magic '\x7fELF\x01\x01\x01\x03\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x28\x00\x01\x00\x00\x00' --mask '\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff'
26+ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
2927
30- - name : Create virtual environment and install python-miio
28+ - name : Build and run in ARMv7 container
3129 run : |
32- python3 -m venv venv
33- . venv/bin/activate
34- pip install --upgrade pip
35- pip install git+https://github.com/rytilahti/python-miio.git
30+ docker run --rm --platform linux/arm/v7 -v $(pwd):/workspace -w /workspace arm32v7/python:3-slim \
31+ /bin/sh -c "
32+ python -m venv venv && \
33+ . venv/bin/activate && \
34+ pip install --upgrade pip && \
35+ pip install git+https://github.com/rytilahti/python-miio.git && \
3636 python -c 'import miio; print(miio.__version__)' > version.txt
37+ "
3738
3839 - name : Archive virtual environment
3940 run : |
You can’t perform that action at this time.
0 commit comments