build: 增加构建

This commit is contained in:
helloplhm-qwq 2023-12-02 18:14:18 +08:00
parent d751ab0e7c
commit bd64bdf2b4
No known key found for this signature in database
GPG Key ID: 6BE1B64B905567C7

58
.github/workflows/build_release.yml vendored Normal file
View File

@ -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