Does not work.
This commit is contained in:
@@ -44,15 +44,24 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Install QEMU
|
||||||
|
uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
- name: Build ARM Executable
|
- name: Build ARM Executable
|
||||||
run: |
|
run: |
|
||||||
docker run --rm --platform linux/arm64 -v $(pwd):/src:Z -w /src \
|
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
||||||
python:3.11-slim-buster /bin/sh -c "
|
docker buildx create --use
|
||||||
python -m pip install --upgrade pip &&
|
docker buildx build --platform linux/arm/v7 -t arm-builder --load - <<EOF
|
||||||
pip install pyinstaller &&
|
FROM python:3.11-slim-buster
|
||||||
cd app &&
|
RUN apt-get update && apt-get install -y python3-dev
|
||||||
pyinstaller --onefile --add-data 'ui:ui' wolServer.py
|
WORKDIR /src
|
||||||
"
|
COPY . .
|
||||||
|
RUN python -m pip install --upgrade pip \
|
||||||
|
&& pip install -r requirements.txt \
|
||||||
|
&& cd app \
|
||||||
|
&& pyinstaller --onefile --add-data "ui:ui" wolServer.py
|
||||||
|
EOF
|
||||||
|
docker cp $(docker create arm-builder):/src/app/dist/wolServer app/dist/wolServer
|
||||||
|
|
||||||
- name: Upload ARM Artifact
|
- name: Upload ARM Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
|
|||||||
Reference in New Issue
Block a user