From 334e29d0d6f18a0d02301db66c6db8256d1d6029 Mon Sep 17 00:00:00 2001 From: Artur Glavic Date: Wed, 11 Mar 2026 13:09:01 +0100 Subject: [PATCH] Reactivate window build action --- .github/workflows/release.yml | 56 +++++++++++++++++------------------ 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f55c42e..d5f2951 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -107,31 +107,31 @@ jobs: files: |- dist/amor*.tar.gz -# build-windows: -# needs: [test] -# runs-on: windows-latest -# if: ${{ (github.event_name != 'workflow_dispatch') || (contains(fromJson('["all", "windows", "all_incl_release"]'), github.event.inputs.build-items)) }} -# -# steps: -# - uses: actions/checkout@v4 -# - name: Set up Python -# uses: actions/setup-python@v5 -# with: -# python-version: 3.12 -# - name: Install dependencies -# run: | -# C:\Miniconda\condabin\conda.bat env update --file conda_windows.yml --name base -# C:\Miniconda\condabin\conda.bat init powershell -# - name: Build with pyinstaller -# run: | -# pyinstaller windows_build.spec -# cd dist\eos -# Compress-Archive -Path .\* -Destination ..\..\eos.zip -# - name: Update Release -# if: ${{ (github.event_name != 'workflow_dispatch') || (contains(fromJson('["all_incl_release"]'), github.event.inputs.build-items)) }} -# uses: actions/gitea-release-action@v1 -# with: -# name: "Amor-Eos ${{ env.RELEASE_TAG }}" -# tag_name: "${{ env.RELEASE_TAG }}" -# files: |- -# eos.zip + build-windows: + needs: [test] + runs-on: windows-latest + if: ${{ (github.event_name != 'workflow_dispatch') || (contains(fromJson('["all", "windows", "all_incl_release"]'), github.event.inputs.build-items)) }} + + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.12 + - name: Install dependencies + run: | + C:\Miniconda\condabin\conda.bat env update --file conda_windows.yml --name base + C:\Miniconda\condabin\conda.bat init powershell + - name: Build with pyinstaller + run: | + pyinstaller windows_build.spec + cd dist\eos + Compress-Archive -Path .\* -Destination ..\..\eos.zip + - name: Update Release + if: ${{ (github.event_name != 'workflow_dispatch') || (contains(fromJson('["all_incl_release"]'), github.event.inputs.build-items)) }} + uses: actions/gitea-release-action@v1 + with: + name: "Amor-Eos ${{ env.RELEASE_TAG }}" + tag_name: "${{ env.RELEASE_TAG }}" + files: |- + eos.zip