firmware/.github/workflows/package_raspbian.yml

56 lines
1.6 KiB
YAML
Raw Normal View History

2023-11-19 20:30:34 +00:00
name: Package Raspbian
on: workflow_dispatch
permissions:
contents: write
packages: write
jobs:
2023-11-19 21:48:43 +00:00
build-raspbian:
uses: ./.github/workflows/build_raspbian.yml
2023-11-19 20:30:34 +00:00
package-raspbian:
runs-on: ubuntu-latest
2023-11-19 21:48:43 +00:00
needs: build-raspbian
2023-11-19 20:30:34 +00:00
steps:
2023-11-19 21:48:43 +00:00
- uses: actions/checkout@v3
2023-11-19 21:48:43 +00:00
- name: Get release version string
run: echo "version=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
id: version
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: firmware-raspbian-${{ steps.version.outputs.version }}.zip
- name: Display structure of downloaded files
run: ls -R
2023-11-19 20:30:34 +00:00
- name: build .debpkg
run: |
mkdir -p .debpkg/usr/sbin
mkdir -p .debpkg/etc/meshtasticd
mkdir -p .debpkg/usr/lib/systemd/system/
2023-11-19 21:48:43 +00:00
cp release/meshtasticd_linux_arm64 .debpkg/usr/sbin/meshtasticd
cp bin/config-dist.yaml .debpkg/etc/meshtasticd/config.yaml
2023-11-19 20:30:34 +00:00
chmod +x .debpkg/usr/sbin/meshtasticd
2023-11-19 21:48:43 +00:00
cp bin/meshtasticd.service .debpkg/usr/lib/systemd/system/meshtasticd.service
2023-11-19 20:30:34 +00:00
- uses: jiro4989/build-deb-action@v3
with:
package: meshtasticd
package_root: .debpkg
maintainer: Jonathan Bennett
2023-11-19 21:48:43 +00:00
version: ${{ steps.version.outputs.version }} # refs/tags/v*.*.*
2023-11-19 20:30:34 +00:00
arch: arm64
depends: libyaml-cpp0.7
desc: Native Linux Meshtastic binary.
- uses: actions/upload-artifact@v3
with:
name: artifact-deb
path: |
./*.deb