From ba9dad7aae349831d13f648d97b85f78b55106f6 Mon Sep 17 00:00:00 2001 From: hisatri Date: Tue, 31 Dec 2024 23:35:37 +0800 Subject: [PATCH] =?UTF-8?q?Fixed=20#85=20=E5=B7=A5=E4=BD=9C=E6=B5=81?= =?UTF-8?q?=E5=8F=AF=E6=89=93=E5=8C=85Windows=20AMD64=E6=9E=B6=E6=9E=84?= =?UTF-8?q?=E5=8F=AF=E6=89=A7=E8=A1=8C=E6=96=87=E4=BB=B6=20=E5=B0=86?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=89=88=E6=9C=AC=E8=BD=AC=E6=8D=A2=E8=87=B3?= =?UTF-8?q?Python3.11?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/python-app.yml | 4 ++-- .github/workflows/release.yml | 34 +++++++++++++++++++++++++++++++- 2 files changed, 35 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 79672dc..db75a69 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -19,10 +19,10 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python 3.10 + - name: Set up Python 3.11 uses: actions/setup-python@v3 with: - python-version: "3.10" + python-version: "3.11" - name: Install dependencies run: | python -m pip install --upgrade pip diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index afa35a7..eb2d79c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,4 +41,36 @@ jobs: uses: actions/upload-artifact@v4 with: name: release - path: release.zip \ No newline at end of file + path: release.zip + + build-windows: + runs-on: windows-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.11 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt + pip install pyinstaller + + - name: Run buildup.py + run: python buildup.py + + - name: Archive release files + run: | + mkdir -p dist + Compress-Archive -Path dist\* -DestinationPath release-windows.zip + + - name: Upload release artifact + uses: actions/upload-artifact@v4 + with: + name: release-windows + path: release-windows.zip \ No newline at end of file