From 2a5bb828a27a16023fbacd87607e11deb022eeac Mon Sep 17 00:00:00 2001 From: helloplhm-qwq Date: Sat, 11 Nov 2023 23:35:50 +0800 Subject: [PATCH] chore: update workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 可恶,签名签不上了 --- .github/workflows/build_binary.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_binary.yml b/.github/workflows/build_binary.yml index 5fdbc57..a919d98 100644 --- a/.github/workflows/build_binary.yml +++ b/.github/workflows/build_binary.yml @@ -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 \ No newline at end of file + path: ./dist