From bd64bdf2b4e81c694174939acf8dc55b7c18eed6 Mon Sep 17 00:00:00 2001 From: helloplhm-qwq Date: Sat, 2 Dec 2023 18:14:18 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E5=A2=9E=E5=8A=A0=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build_release.yml | 58 +++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/build_release.yml diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml new file mode 100644 index 0000000..793be01 --- /dev/null +++ b/.github/workflows/build_release.yml @@ -0,0 +1,58 @@ + +name: Build Release + +on: + workflow_dispatch: + +jobs: + build-windows: + runs-on: windows-latest + steps: + - name: Checkout git repo + uses: actions/checkout@v2 + + - name: Setup Python 3.11 + uses: actions/setup-python@v2 + with: + python-version: '3.11' + + - name: Install pyinstaller + run: python -m pip install pyinstaller + + - name: Install dependencies + run: python -m pip install -r ./requirements.txt + + - name: Build EXE + run: python build.py build release + + - name: Upload + uses: actions/upload-artifact@v2 + with: + name: windows + path: ./dist + + build-linux: + runs-on: ubuntu-latest + steps: + - name: Checkout git repo + uses: actions/checkout@v2 + + - name: Setup Python 3.11 + uses: actions/setup-python@v2 + with: + python-version: '3.11' + + - name: Install pyinstaller + run: python -m pip install pyinstaller + + - name: Install dependencies + run: python -m pip install -r ./requirements.txt + + - name: Build Executable + run: python build.py build release + + - name: Upload + uses: actions/upload-artifact@v2 + with: + name: linux + path: ./dist