Skip to content

Commit

Permalink
feat: added arm32 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
nimish-ks committed Aug 3, 2023
1 parent 3803824 commit 0b12ad1
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0b12ad1

Please sign in to comment.