-
Notifications
You must be signed in to change notification settings - Fork 990
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into NextHopRouter
- Loading branch information
Showing
38 changed files
with
1,256 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Build Debian Source Package | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
PPA_GPG_PRIVATE_KEY: | ||
required: true | ||
inputs: | ||
series: | ||
description: Ubuntu series to target | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
jobs: | ||
build-debian-src: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
path: meshtasticd | ||
ref: ${{github.event.pull_request.head.ref}} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
|
||
- name: Install deps | ||
shell: bash | ||
working-directory: meshtasticd | ||
run: | | ||
sudo apt-get update -y --fix-missing | ||
sudo apt-get install -y software-properties-common build-essential devscripts equivs | ||
sudo add-apt-repository ppa:meshtastic/build-tools -y | ||
sudo apt-get update -y --fix-missing | ||
sudo mk-build-deps --install --remove --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control | ||
- name: Import GPG key | ||
uses: crazy-max/ghaction-import-gpg@v6 | ||
with: | ||
gpg_private_key: ${{ secrets.PPA_GPG_PRIVATE_KEY }} | ||
id: gpg | ||
|
||
- name: Get release version string | ||
working-directory: meshtasticd | ||
run: | | ||
echo "deb=$(./bin/buildinfo.py deb)" >> $GITHUB_OUTPUT | ||
id: version | ||
|
||
- name: Fetch libdeps, package debian source | ||
working-directory: meshtasticd | ||
run: debian/ci_pack_sdeb.sh | ||
env: | ||
SERIES: ${{ inputs.series }} | ||
GPG_KEY_ID: ${{ steps.gpg.outputs.keyid }} | ||
PKG_VERSION: ${{ steps.version.outputs.deb }} | ||
|
||
- name: Store binaries as an artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: firmware-debian-${{ steps.version.outputs.deb }}~${{ inputs.series }}-src | ||
overwrite: true | ||
path: | | ||
meshtasticd_${{ steps.version.outputs.deb }}* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
name: Package Launchpad PPA | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
PPA_GPG_PRIVATE_KEY: | ||
required: true | ||
inputs: | ||
ppa_repo: | ||
description: Meshtastic PPA to target | ||
required: true | ||
type: string | ||
series: | ||
description: Ubuntu series to target | ||
required: true | ||
type: string | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
jobs: | ||
build-debian-src: | ||
uses: ./.github/workflows/build_debian_src.yml | ||
secrets: inherit | ||
with: | ||
series: ${{ inputs.series }} | ||
|
||
package-ppa: | ||
runs-on: ubuntu-24.04 | ||
needs: build-debian-src | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
path: meshtasticd | ||
ref: ${{github.event.pull_request.head.ref}} | ||
repository: ${{github.event.pull_request.head.repo.full_name}} | ||
|
||
- name: Install deps | ||
shell: bash | ||
run: | | ||
sudo apt-get update -y --fix-missing | ||
sudo apt-get install -y dput | ||
- name: Import GPG key | ||
uses: crazy-max/ghaction-import-gpg@v6 | ||
with: | ||
gpg_private_key: ${{ secrets.PPA_GPG_PRIVATE_KEY }} | ||
id: gpg | ||
|
||
- name: Get release version string | ||
working-directory: meshtasticd | ||
run: | | ||
echo "deb=$(./bin/buildinfo.py deb)" >> $GITHUB_OUTPUT | ||
id: version | ||
|
||
- name: Download artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: firmware-debian-${{ steps.version.outputs.deb }}~${{ inputs.series }}-src | ||
merge-multiple: true | ||
|
||
- name: Display structure of downloaded files | ||
run: ls -lah | ||
|
||
- name: Publish with dput | ||
if: ${{ github.event_name != 'pull_request_target' && github.event_name != 'pull_request' }} | ||
run: | | ||
dput ppa:meshtastic/${{ inputs.ppa_repo }} meshtasticd_${{ steps.version.outputs.deb }}~${{ inputs.series }}_source.changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Trigger release workflows upon Publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
package-ppa: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
series: [plucky, oracular, noble, jammy] | ||
uses: ./.github/workflows/package_ppa.yml | ||
with: | ||
ppa_repo: |- | ||
${{ contains(github.event.release.name, 'Beta') && 'beta' || contains(github.event.release.name, 'Alpha') && 'alpha' }} | ||
series: ${{ matrix.series }} | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Module: RF95 # Adafruit RFM9x | ||
# Reset: 25 | ||
# CS: 7 | ||
# IRQ: 22 | ||
# Busy: 23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.debhelper | ||
debhelper-build-stamp | ||
meshtasticd | ||
files | ||
meshtasticd.substvars | ||
meshtasticd.postrm.debhelper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
meshtasticd (2.5.19) UNRELEASED; urgency=medium | ||
|
||
* Initial packaging | ||
|
||
-- Austin Lane <[email protected]> Thu, 02 Jan 2025 12:00:00 +0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/usr/bin/bash | ||
export DEBEMAIL="github-actions[bot]@users.noreply.github.com" | ||
PKG_VERSION=$(python3 bin/buildinfo.py short) | ||
|
||
dch --newversion "$PKG_VERSION-1" \ | ||
--distribution UNRELEASED \ | ||
"GitHub Actions Automatic version bump" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/bash | ||
export DEBEMAIL="[email protected]" | ||
export PLATFORMIO_LIBDEPS_DIR=pio/libdeps | ||
export PLATFORMIO_PACKAGES_DIR=pio/packages | ||
export PLATFORMIO_CORE_DIR=pio/core | ||
|
||
# Download libraries to `pio` | ||
platformio pkg install -e native | ||
platformio pkg install -e native -t platformio/[email protected] | ||
# Compress `pio` directory to prevent dh_clean from sanitizing it | ||
tar -cf pio.tar pio/ | ||
rm -rf pio | ||
# Download the latest meshtastic/web release build.tar to `web.tar` | ||
curl -L https://github.com/meshtastic/web/releases/download/latest/build.tar -o web.tar | ||
|
||
package=$(dpkg-parsechangelog --show-field Source) | ||
|
||
rm -rf debian/changelog | ||
dch --create --distribution "$SERIES" --package "$package" --newversion "$PKG_VERSION~$SERIES" \ | ||
"GitHub Actions Automatic packaging for $PKG_VERSION~$SERIES" | ||
|
||
# Build the source deb | ||
debuild -S -nc -k"$GPG_KEY_ID" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
Source: meshtasticd | ||
Section: misc | ||
Priority: optional | ||
Maintainer: Austin Lane <[email protected]> | ||
Build-Depends: debhelper-compat (= 13), | ||
tar, | ||
gzip, | ||
platformio, | ||
python3-protobuf, | ||
python3-grpcio, | ||
git, | ||
g++, | ||
pkg-config, | ||
libyaml-cpp-dev, | ||
libgpiod-dev, | ||
libbluetooth-dev, | ||
libusb-1.0-0-dev, | ||
libi2c-dev, | ||
openssl, | ||
libssl-dev, | ||
libulfius-dev, | ||
liborcania-dev | ||
Standards-Version: 4.6.2 | ||
Homepage: https://github.com/meshtastic/firmware | ||
Rules-Requires-Root: no | ||
|
||
Package: meshtasticd | ||
Architecture: any | ||
Depends: ${misc:Depends}, ${shlibs:Depends} | ||
Description: Meshtastic daemon for communicating with Meshtastic devices | ||
Meshtastic is an off-grid text communication platform that uses inexpensive | ||
LoRa radios. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
etc/meshtasticd | ||
etc/meshtasticd/config.d | ||
etc/meshtasticd/available.d | ||
usr/share/meshtasticd/web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.pio/build/native/meshtasticd usr/sbin | ||
|
||
bin/config.yaml etc/meshtasticd | ||
bin/config.d/* etc/meshtasticd/available.d | ||
|
||
bin/meshtasticd.service lib/systemd/system | ||
|
||
web/* usr/share/meshtasticd/web |
Oops, something went wrong.