Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp committed Nov 20, 2023
1 parent a324731 commit 791be05
Showing 1 changed file with 2 additions and 29 deletions.
31 changes: 2 additions & 29 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:

Linux-build-amd64:
runs-on: ubuntu-latest
name: Build Linux Binary
name: Build Linux Amd64
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -163,36 +163,10 @@ jobs:
name: linux-amd64
path: dist/MoviePilot_Amd64

Linux-build-arm64:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set Up QEMU
uses: docker/setup-qemu-action@v2

- name: Set Up Buildx
uses: docker/setup-buildx-action@v2

- name: Package through pyinstaller
run: |
mkdir rootfs
docker buildx build --platform linux/arm64 --file ./Dockerfile --build-arg branch=main --output type=local,dest=./rootfs .
mkdir dist
cp ./rootfs/MoviePilot dist/MoviePilot_Arm64
shell: pwsh

- name: Upload Linux File
uses: actions/upload-artifact@v3
with:
name: linux-arm64
path: dist/MoviePilot_Arm64

Create-release:
permissions: write-all
runs-on: ubuntu-latest
needs: [ Windows-build, Docker-build, Linux-build-amd64, Linux-build-arm64 ]
needs: [ Windows-build, Docker-build, Linux-build-amd64]
steps:
- uses: actions/checkout@v2

Expand All @@ -211,7 +185,6 @@ jobs:
mkdir releases
mv ./windows/MoviePilot.exe ./releases/MoviePilot_Win_v${{ env.app_version }}.exe
mv ./linux-amd64/dist/MoviePilot_Amd64 ./releases/MoviePilot_Amd64_v${{ env.app_version }}
mv ./linux-arm64/dist/MoviePilot_Arm64 ./releases/MoviePilot_Arm64_v${{ env.app_version }}
- name: Create Release
id: create_release
Expand Down

0 comments on commit 791be05

Please sign in to comment.