mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
chore: 放弃
可恶,签名签不上了
This commit is contained in:
parent
a55e76fcec
commit
4e004ff33f
22
.github/workflows/build_binary.yml
vendored
22
.github/workflows/build_binary.yml
vendored
@ -1,4 +1,6 @@
|
|||||||
name: build Windows and Linux executables
|
# this workflow using github actions to build a binary exe file for windows users
|
||||||
|
|
||||||
|
name: build Windows exe
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -9,12 +11,8 @@ on:
|
|||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build:
|
build-exe:
|
||||||
runs-on: ubuntu-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
os: [ubuntu-latest, windows-latest]
|
|
||||||
arch: [x64]
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout git repo
|
- name: Checkout git repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -31,18 +29,12 @@ jobs:
|
|||||||
run: python -m pip install -r ./requirements.txt
|
run: python -m pip install -r ./requirements.txt
|
||||||
|
|
||||||
- name: Build EXE
|
- name: Build EXE
|
||||||
if: matrix.os == 'windows-latest'
|
|
||||||
env:
|
env:
|
||||||
actions: T
|
actions: T
|
||||||
run: pyinstaller -F --name lx-music-api-server_${{ github.sha }}_win_${{ matrix.os }} main.py
|
run: pyinstaller -F --name lx-music-api-server_${{ github.sha }} main.py
|
||||||
- name: Build Linux Executable
|
|
||||||
if: matrix.os == 'ubuntu-latest'
|
|
||||||
env:
|
|
||||||
actions: E
|
|
||||||
run: pyinstaller -F --name lx-music-api-server_${{ github.sha }}_linux_${{ matrix.os }} main.py
|
|
||||||
|
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: lx-music-api-server-
|
name: lx-music-api-server
|
||||||
path: ./dist
|
path: ./dist
|
Loading…
x
Reference in New Issue
Block a user