mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-05-23 19:17:41 +08:00
chore: update workflow
可恶,签名签不上了
This commit is contained in:
parent
5afa005023
commit
2a5bb828a2
16
.github/workflows/build_binary.yml
vendored
16
.github/workflows/build_binary.yml
vendored
@ -1,6 +1,4 @@
|
|||||||
# this workflow using github actions to build a binary exe file for windows users
|
name: build Windows and Linux executables
|
||||||
|
|
||||||
name: build Windows exe
|
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -10,7 +8,11 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-exe:
|
build-exe:
|
||||||
runs-on: windows-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest]
|
||||||
|
arch: [x64, arm64]
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout git repo
|
- name: Checkout git repo
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
@ -27,9 +29,15 @@ 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 }} 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 }} main.py
|
||||||
|
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user