10 Commits

Author SHA1 Message Date
855cb45fa3 more ignores
All checks were successful
Test with Pytest / test (push) Successful in 25s
2025-11-05 01:36:50 +02:00
28be30812b I would rather be playing Hell Divers 2. 2025-11-05 01:22:28 +02:00
862bec0dfd Love coding? here's the secret reason why 2025-11-05 01:07:18 +02:00
fc253de73b Make that it works in 90% of the cases. 3:30. 2025-11-05 00:11:47 +02:00
e7f02ae36e ??! what the ... 2025-11-04 23:49:39 +02:00
c3ba17074e Check next commit for message. 2025-11-04 23:24:18 +02:00
b2ceef9201 To be honest, I do not quite remember everything I changed here today. But it is all good, I tell ya. 2025-11-04 22:50:10 +02:00
7779a7e423 tagging release w.t.f. 2025-11-04 22:24:12 +02:00
b5d32ce9b4 WIP, always 2025-11-04 22:09:43 +02:00
6f95d00faf A long time ago, in a galaxy far far away... 2025-11-04 21:45:18 +02:00

View File

@@ -23,11 +23,11 @@ jobs:
with:
python-version: '3.14'
- name: Install QEMU (arm)
if: matrix.arch == 'arm64'
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
# - name: Install QEMU (arm)
# if: matrix.arch == 'arm64'
# uses: docker/setup-qemu-action@v3
# with:
# platforms: arm64
- name: Set up Docker Buildx (arm)
if: matrix.arch == 'arm64'
@@ -40,16 +40,16 @@ jobs:
if [ "${{ matrix.arch }}" = "x86_64" ]; then
pip install -r requirements.txt
cd app
pyinstaller --onefile --add-data "ui:ui" wolServer.py
pyinstaller --onefile --add-data "ui:ui" --name wolServer-${{ matrix.arch }} wolServer.py
else
echo 'FROM arm64v8/python:3.13-slim-bullseye AS builder
WORKDIR /app
COPY requirements.txt .
COPY app ./app
COPY app .
RUN apt-get update && apt-get install -y --no-install-recommends binutils \
&& pip install -r /app/requirements.txt \
&& cd /app/app && pyinstaller --onefile --add-data "ui:ui" wolServer.py \
&& mkdir -p /output && cp /app/app/dist/wolServer /output/
&& pip install -r requirements.txt \
&& pyinstaller --onefile --add-data "ui:ui" --name wolServer-${{ matrix.arch }} wolServer.py \
&& mkdir -p /output && cp dist/wolServer-${{ matrix.arch }} /output/
FROM scratch
COPY --from=builder /output /output' > Dockerfile
docker buildx build --platform linux/arm64/v8 --output type=local,dest=app/dist .
@@ -58,30 +58,19 @@ jobs:
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: executable-${{ matrix.arch }}
path: app/dist
name: wolServer-${{ matrix.arch }}
path: app/dist/**
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Create Dist Directory
run: mkdir -p app/dist
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
path: app/dist
- name: Rename Artifacts
run: |
mv app/dist/executable-x86_64/wolServer app/dist/wolServer-x86_64
mv app/dist/executable-arm64/wolServer app/dist/wolServer-arm
- name: Generate Tag
id: tag
run: echo "TAG=v$(TZ='Europe/Athens' date +'%d%m%Y%H%M%S')" >> $GITEA_ENV
@@ -95,7 +84,7 @@ jobs:
body: "Automated push release"
token: ${{ secrets.mytoken }}
files: |-
app/dist/wolServer-*
/workspace/konsthol/WOL-Ly/app/dist/**
cleanup:
needs: release
@@ -104,12 +93,8 @@ jobs:
steps:
- name: Cleanup Buildx Containers
run: |
docker ps -q --filter "name=buildx" | xargs -r docker stop
docker ps -aq --filter "name=buildx" | xargs -r docker rm
docker images --filter "reference=moby/buildkit" -q | xargs -r docker rmi
docker images --filter "reference=arm-builder" -q | xargs -r docker rmi
docker images --filter "reference=multiarch/qemu-user-static" -q | xargs -r docker rmi
docker images --filter "reference=tonistiigi/binfmt" -q | xargs -r docker rmi
docker volume ls --filter "name=buildx" -q | xargs -r docker volume rm
#docker images --filter "reference=moby/buildkit" -q | xargs -r docker rmi
#docker images --filter "reference=tonistiigi/binfmt" -q | xargs -r docker rmi
#docker images --filter "reference=gitea/runner-images" -q | xargs -r docker rmi
#docker volume ls --filter "name=act" -q | xargs -r docker volume rm