From a90922f6d0e9885d9206590eeebfc88a3ab2b4d2 Mon Sep 17 00:00:00 2001 From: quintenvandamme Date: Fri, 28 Jun 2024 17:39:43 +0200 Subject: [PATCH] try to add arm64 for linux --- .github/workflows/build.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index abd111d..dc4c345 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,10 +34,22 @@ jobs: Linux_aarch64: runs-on: ubuntu-latest - package-suffix: linux-aarch64 - + steps: - uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 + with: + platforms: arm64 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v2 + + - name: Build in ARM64 Environment + run: | + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + docker build --platform linux/arm64 -t tv-downloader:latest . + - name: Set up Python uses: actions/setup-python@v5 with: @@ -45,14 +57,14 @@ jobs: check-latest: true - name: Build TV Downloader - run: python build.py build + run: docker run --rm -v $(pwd):/workspace -w /workspace tv-downloader:latest python build.py build - name: Upload Binary uses: ncipollo/release-action@v1 with: artifacts: "./out/*" allowUpdates: true - tag: "continious-build" + tag: "continuous-build" Windows_x86_64: runs-on: windows-latest