foo
This commit is contained in:
@@ -30,6 +30,7 @@ jobs:
|
|||||||
platforms: arm64
|
platforms: arm64
|
||||||
|
|
||||||
- name: Set up Docker Buildx (arm)
|
- name: Set up Docker Buildx (arm)
|
||||||
|
if: matrix.arch == 'arm64'
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
platforms: linux/arm64
|
platforms: linux/arm64
|
||||||
@@ -45,22 +46,17 @@ jobs:
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
COPY app ./app
|
COPY app ./app
|
||||||
ENV PIP_ROOT_USER_ACTION=ignore
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends binutils \
|
RUN apt-get update && apt-get install -y --no-install-recommends binutils \
|
||||||
&& pip install -r /app/requirements.txt \
|
&& pip install -r /app/requirements.txt \
|
||||||
&& cd /app/app && pyinstaller --onefile --add-data "ui:ui" wolServer.py' > Dockerfile.arm
|
&& cd /app/app && pyinstaller --onefile --add-data "ui:ui" wolServer.py' > Dockerfile
|
||||||
docker buildx build --platform linux/arm64/v8 -t arm-builder --load -f Dockerfile.arm .
|
docker buildx build --platform linux/arm64/v8 --output type=local,dest=app/dist .
|
||||||
mkdir -p app/dist
|
|
||||||
container_id=$(docker create --platform linux/arm64/v8 arm-builder)
|
|
||||||
docker cp $container_id:/app/app/dist/wolServer app/dist/wolServer
|
|
||||||
docker rm $container_id
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: executable-${{ matrix.arch }}
|
name: executable-${{ matrix.arch }}
|
||||||
path: app/dist/wolServer
|
path: app/dist
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: build
|
needs: build
|
||||||
@@ -80,8 +76,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Rename Artifacts
|
- name: Rename Artifacts
|
||||||
run: |
|
run: |
|
||||||
mv app/dist/executable-x86_64/wolServer app/dist/wolServer-x86_64 || true
|
mv app/dist/executable-x86_64 app/dist/wolServer-x86_64
|
||||||
mv app/dist/executable-arm64/wolServer app/dist/wolServer-arm || true
|
mv app/dist/executable-arm64 app/dist/wolServer-arm
|
||||||
|
|
||||||
- name: Generate Tag
|
- name: Generate Tag
|
||||||
id: tag
|
id: tag
|
||||||
|
|||||||
Reference in New Issue
Block a user