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