Skip to content

Commit

Permalink
Add linux arm matrix build
Browse files Browse the repository at this point in the history
  • Loading branch information
HEnquist committed Jan 29, 2025
1 parent 7b3a53e commit 4c150a7
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,48 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: standalone_win
path: dist
path: dist

pyinstaller_linux:
runs-on: ubuntu-22.04
name: Build pyinstaller package on ${{ matrix.arch }}

strategy:
matrix:
include:
- arch: aarch64
- arch: armv7
- arch: armv6
steps:
- name: Download complete distribution
uses: actions/download-artifact@v4
with:
name: camillagui-backend
- uses: uraimo/run-on-arch-action@v2
name: Build artifact
id: build
with:
arch: ${{ matrix.arch }}
distro: ubuntu22.04

# Mount the artifacts directory as /artifacts in the container
dockerRunArgs: |
--volume "${PWD}:/cdsp"
install: |
apt-get update -q -y
add-apt-repository ppa:deadsnakes/ppa -y
apt update
apt install python3.12 -y
#
# Produce a binary artifact and place it in the mounted volume
run: |
python3.12 -m pip install -r requirements.txt
python3.12 -m pip install pyinstaller
cd cdsp
pyinstaller .\main.py --add-data .\config\:config --add-data .\build\:build --collect-data camilladsp_plot --name camillagui_backend
- name: Upload build
uses: actions/upload-artifact@v4
with:
name: standalone_linux_${{ matrix.arch }}
path: dist

0 comments on commit 4c150a7

Please sign in to comment.