File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed
Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 6969 path : dist/
7070 - name : Publish distribution 📦 to PyPI
7171 uses : pypa/gh-action-pypi-publish@release/v1
72+
73+ build-deb :
74+ name : Build Debian package for Raspberry Pi 📦
75+ runs-on : ubuntu-latest
76+ steps :
77+ - uses : actions/checkout@v4
78+ - name : Set up QEMU
79+ uses : docker/setup-qemu-action@v3
80+ - name : Build Debian package in Raspberry Pi OS container
81+ uses : docker/setup-buildx-action@v3
82+ - name : Build ARM Debian package
83+ run : |
84+ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
85+ docker run --platform linux/arm/v7 -v $(pwd):/workspace -w /workspace \
86+ balenalib/raspberry-pi-debian:latest \
87+ /bin/bash -c "apt-get update && \
88+ apt-get install -y python3 python3-pip python3-dev python3-setuptools python3-stdeb dh-python \
89+ debhelper build-essential && \
90+ pip3 install -e . && \
91+ make build_deb"
92+ - name : List built packages
93+ run : find deb_dist -name "*.deb"
94+ - name : Upload Debian package to release
95+ uses : softprops/action-gh-release@v2
96+ if : github.event_name == 'release'
97+ with :
98+ files : " deb_dist/*.deb"
99+ tag_name : ${{ github.event.release.tag_name }}
Original file line number Diff line number Diff line change 33build
44twine
55bump2version
6- python-dateutil
6+ python-dateutil
7+ stdeb
You can’t perform that action at this time.
0 commit comments