mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
Merge branch 'main' of https://github.com/lxmusics/lx-music-api-server-python
This commit is contained in:
commit
c9c0bdd75b
40
.github/workflows/build_binary.yml
vendored
40
.github/workflows/build_binary.yml
vendored
@ -1,40 +0,0 @@
|
|||||||
# this workflow using github actions to build a binary exe file for windows users
|
|
||||||
|
|
||||||
name: build Windows exe
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [main]
|
|
||||||
pull_request:
|
|
||||||
branches: [main]
|
|
||||||
workflow_dispatch:
|
|
||||||
branches: [main]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-exe:
|
|
||||||
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
|
|
||||||
env:
|
|
||||||
actions: T
|
|
||||||
run: pyinstaller -F --name lx-music-api-server_${{ github.sha }} main.py
|
|
||||||
|
|
||||||
- name: Upload
|
|
||||||
uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: lx-music-api-server
|
|
||||||
path: ./dist
|
|
Loading…
x
Reference in New Issue
Block a user