Trust me, it's not badly written. It's just way above your head.

This commit is contained in:
2025-11-02 17:56:05 +02:00
parent cd12bb316a
commit 57f45dc471
3 changed files with 18 additions and 16 deletions

View File

@@ -16,4 +16,4 @@ jobs:
REPO_NAME="WOL-Ly" REPO_NAME="WOL-Ly"
TAG_NAME="$(curl -s https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases/latest | jq -r '.tag_name')" TAG_NAME="$(curl -s https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases/latest | jq -r '.tag_name')"
GITEA_RELEASE_URL="$BASE_URL/$REPO_OWNER/$REPO_NAME/releases/tag/$TAG_NAME" GITEA_RELEASE_URL="$BASE_URL/$REPO_OWNER/$REPO_NAME/releases/tag/$TAG_NAME"
curl -s -H 'Cache: no' -d "A new release has been published! Check it out: $GITEA_RELEASE_URL 😎" konsthol.eu:5656/Releases curl -s -H 'Cache: no' -d "A new release has been published! Check it out: $GITEA_RELEASE_URL 😎" https://konsthol.eu/Releases

View File

@@ -12,10 +12,10 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v5
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v6
with: with:
python-version: '3.14' python-version: '3.14'
@@ -30,7 +30,7 @@ jobs:
pyinstaller --onefile --add-data "ui:ui" wolServer.py pyinstaller --onefile --add-data "ui:ui" wolServer.py
- name: Upload x86_64 Artifact - name: Upload x86_64 Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v5
with: with:
name: executable-x86_64 name: executable-x86_64
path: app/dist/wolServer path: app/dist/wolServer
@@ -40,23 +40,25 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Install QEMU - name: Install QEMU
uses: docker/setup-qemu-action@v2 uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build ARM Executable - name: Build ARM Executable
run: | run: |
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx create --use docker buildx create --use
docker buildx build --platform linux/arm64/v8 -t arm-builder --load --file - . <<EOF docker buildx build --platform linux/arm64/v8 -t arm-builder --load --file - . <<EOF
FROM arm64v8/python:3.14-slim-trixie FROM arm64v8/python:3.13-slim-trixie
WORKDIR /app WORKDIR /app
COPY requirements.txt /app/requirements.txt COPY requirements.txt /app/requirements.txt
COPY app /app/app COPY app /app/app
ENV DEBIAN_FRONTEND=noninteractive
ENV PIP_ROOT_USER_ACTION=ignore
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
build-essential \ build-essential \
python3-dev \ python3-dev \
@@ -80,7 +82,7 @@ jobs:
docker rm $container_id docker rm $container_id
- name: Upload ARM Artifact - name: Upload ARM Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v5
with: with:
name: executable-arm name: executable-arm
path: app/dist/wolServer path: app/dist/wolServer
@@ -91,13 +93,13 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v3 uses: actions/checkout@v5
- name: Create Dist Directory - name: Create Dist Directory
run: mkdir -p app/dist run: mkdir -p app/dist
- name: Download x86_64 Artifact - name: Download x86_64 Artifact
uses: actions/download-artifact@v3 uses: actions/download-artifact@v6
with: with:
name: executable-x86_64 name: executable-x86_64
path: app/dist path: app/dist
@@ -109,7 +111,7 @@ jobs:
run: mv app/dist/wolServer app/dist/wolServer-x86_64 run: mv app/dist/wolServer app/dist/wolServer-x86_64
- name: Download ARM Artifact - name: Download ARM Artifact
uses: actions/download-artifact@v3 uses: actions/download-artifact@v6
with: with:
name: executable-arm name: executable-arm
path: app/dist path: app/dist

View File

@@ -11,10 +11,10 @@ jobs:
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v5
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v4 uses: actions/setup-python@v6
with: with:
python-version: '3.14' python-version: '3.14'