chore: update workflow

可恶,签名签不上了
This commit is contained in:
helloplhm-qwq 2023-11-11 23:35:50 +08:00
parent 5afa005023
commit 2a5bb828a2

View File

@ -1,6 +1,4 @@
# this workflow using github actions to build a binary exe file for windows users
name: build Windows exe
name: build Windows and Linux executables
on:
push:
@ -10,7 +8,11 @@ on:
jobs:
build-exe:
runs-on: windows-latest
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
arch: [x64, arm64]
steps:
- name: Checkout git repo
uses: actions/checkout@v2
@ -25,14 +27,20 @@ jobs:
- name: Install dependencies
run: python -m pip install -r ./requirements.txt
- name: Build EXE
if: matrix.os == 'windows-latest'
env:
actions: T
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
uses: actions/upload-artifact@v2
with:
name: lx-music-api-server
path: ./dist
path: ./dist