Skip to content

Commit

Permalink
Add package-raspbian workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-bennett committed Nov 19, 2023
1 parent a5f185e commit bb85c08
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/package_raspbian.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Package Raspbian

Check failure on line 1 in .github/workflows/package_raspbian.yml

View workflow job for this annotation

GitHub Actions / Trunk Check

checkov(CKV2_GHA_1)

[new] Ensure top-level permissions are not set to write-all

on: workflow_dispatch

jobs:
build-raspbian:
uses: ./.github/workflows/build_raspbian.yml

package-raspbian:
runs-on: [self-hosted, linux, ARM64]
steps:
- name: build .debpkg
run: |
mkdir -p .debpkg/usr/sbin
mkdir -p .debpkg/etc/meshtasticd
mkdir -p .debpkg/usr/lib/systemd/system/
cp release/meshtasticd_linux_arm64 /usr/sbin/meshtasticd
cp bin/config-dist.yaml /etc/meshtasticd/config.yaml
chmod +x .debpkg/usr/sbin/meshtasticd
cp bin/meshtasticd.service /usr/lib/systemd/system/meshtasticd.service
- uses: jiro4989/build-deb-action@v3
with:
package: meshtasticd
package_root: .debpkg
maintainer: Jonathan Bennett
version: ${{ github.ref }} # refs/tags/v*.*.*
arch: arm64
depends: libyaml-cpp0.7
desc: Native Linux Meshtastic binary.

0 comments on commit bb85c08

Please sign in to comment.