From 0b12ad19e498515fcd5f53876ccd828f49abecca Mon Sep 17 00:00:00 2001 From: Nimish Date: Thu, 3 Aug 2023 12:39:46 +0530 Subject: [PATCH] feat: added arm32 builds --- .github/workflows/build.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 839dd0c4..8b6ff834 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,3 +68,30 @@ jobs: with: name: ARM64-binary path: ./phase + build_arm32: + name: Build ARM32 + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + with: + install: true + + - name: Run Docker image and build + run: | + docker run --rm --privileged multiarch/qemu-user-static --reset -p yes + docker run --name temp_container -v $(pwd):/app -w /app arm32v7/python:3.11-buster /bin/bash -c "pip install -r requirements.txt && pip install pyinstaller && pyinstaller --onefile --name phase phase-cli.py" + docker cp temp_container:/app/dist/phase . + docker rm temp_container + + - name: Upload artifact + uses: actions/upload-artifact@v2 + with: + name: ARM32-binary + path: ./phase