Skip to content

Commit

Permalink
meshtasticd-debian: parameterize target PPA (#5776)
Browse files Browse the repository at this point in the history
  • Loading branch information
vidplace7 authored Jan 6, 2025
1 parent 4c3a3ca commit e5dbcf5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build_debian_src.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
required: true
inputs:
series:
description: 'Ubuntu series to target'
description: Ubuntu series to target
required: true
type: string

Expand All @@ -32,9 +32,9 @@ jobs:
working-directory: meshtasticd
run: |
sudo apt-get update -y --fix-missing
sudo apt-get install -y software-properties-common
sudo add-apt-repository ppa:meshtastic/meshtastic-daily -y
sudo apt-get install -y build-essential devscripts equivs
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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ jobs:
series: [plucky, oracular, noble, jammy]
uses: ./.github/workflows/package_ppa.yml
with:
ppa_repo: daily
series: ${{ matrix.series }}
secrets: inherit
8 changes: 6 additions & 2 deletions .github/workflows/package_ppa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,12 @@ on:
PPA_GPG_PRIVATE_KEY:
required: true
inputs:
ppa_repo:
description: Meshtastic PPA to target
required: true
type: string
series:
description: 'Ubuntu series to target'
description: Ubuntu series to target
required: true
type: string
workflow_dispatch:
Expand Down Expand Up @@ -65,4 +69,4 @@ jobs:
- name: Publish with dput
if: ${{ github.event_name != 'pull_request_target' && github.event_name != 'pull_request' }}
run: |
dput ppa:meshtastic/meshtastic-daily meshtasticd_${{ steps.version.outputs.deb }}~${{ inputs.series }}_source.changes
dput ppa:meshtastic/${{ inputs.ppa_repo }} meshtasticd_${{ steps.version.outputs.deb }}~${{ inputs.series }}_source.changes
4 changes: 2 additions & 2 deletions debian/ci_pack_sdeb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ rm -rf pio
package=$(dpkg-parsechangelog --show-field Source)

rm -rf debian/changelog
dch --create --distribution $SERIES --package $package --newversion $PKG_VERSION~$SERIES \
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
debuild -S -nc -k"$GPG_KEY_ID"

0 comments on commit e5dbcf5

Please sign in to comment.