diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index e6cc0ac..ae3c346 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -7,83 +7,66 @@ on: - completed jobs: - build-x86_64: + build: runs-on: ubuntu-latest + strategy: + matrix: + arch: [x86_64, arm64] steps: - name: Checkout code uses: actions/checkout@v5 - - name: Set up Python + - name: Set up Python (x86_64) + if: matrix.arch == 'x86_64' uses: actions/setup-python@v6 with: python-version: '3.14' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - - - name: Build with PyInstaller - run: | - cd app - pyinstaller --onefile --add-data "ui:ui" wolServer.py - - - name: Upload x86_64 Artifact - uses: actions/upload-artifact@v3 - with: - name: executable-x86_64 - path: app/dist/wolServer - - build-arm: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v5 - - - name: Install QEMU + - name: Install QEMU (arm) + if: matrix.arch == 'arm64' uses: docker/setup-qemu-action@v3 with: platforms: arm64 - - name: Set up Docker Buildx + - name: Set up Docker Buildx (arm) uses: docker/setup-buildx-action@v3 with: platforms: linux/arm64 - - name: Build ARM Executable + - name: Build Executable run: | - docker buildx build --platform linux/arm64/v8 -t arm-builder --load --file - . <> $GITEA_ENV @@ -130,10 +99,10 @@ jobs: body: "Automated push release" token: ${{ secrets.mytoken }} files: |- - app/dist/** + app/dist/wolServer-* cleanup: - needs: [release] + needs: release runs-on: ubuntu-latest steps: