mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-09 06:32:06 +00:00
meshtasticd-debian: parameterize target PPA (#5776)
This commit is contained in:
parent
4c3a3ca47d
commit
e5dbcf5bce
8
.github/workflows/build_debian_src.yml
vendored
8
.github/workflows/build_debian_src.yml
vendored
@ -7,7 +7,7 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
inputs:
|
inputs:
|
||||||
series:
|
series:
|
||||||
description: 'Ubuntu series to target'
|
description: Ubuntu series to target
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
@ -32,9 +32,9 @@ jobs:
|
|||||||
working-directory: meshtasticd
|
working-directory: meshtasticd
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -y --fix-missing
|
sudo apt-get update -y --fix-missing
|
||||||
sudo apt-get install -y software-properties-common
|
sudo apt-get install -y software-properties-common build-essential devscripts equivs
|
||||||
sudo add-apt-repository ppa:meshtastic/meshtastic-daily -y
|
sudo add-apt-repository ppa:meshtastic/build-tools -y
|
||||||
sudo apt-get install -y build-essential devscripts equivs
|
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
|
sudo mk-build-deps --install --remove --tool='apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes' debian/control
|
||||||
|
|
||||||
- name: Import GPG key
|
- name: Import GPG key
|
||||||
|
1
.github/workflows/nightly.yml
vendored
1
.github/workflows/nightly.yml
vendored
@ -24,5 +24,6 @@ jobs:
|
|||||||
series: [plucky, oracular, noble, jammy]
|
series: [plucky, oracular, noble, jammy]
|
||||||
uses: ./.github/workflows/package_ppa.yml
|
uses: ./.github/workflows/package_ppa.yml
|
||||||
with:
|
with:
|
||||||
|
ppa_repo: daily
|
||||||
series: ${{ matrix.series }}
|
series: ${{ matrix.series }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
8
.github/workflows/package_ppa.yml
vendored
8
.github/workflows/package_ppa.yml
vendored
@ -6,8 +6,12 @@ on:
|
|||||||
PPA_GPG_PRIVATE_KEY:
|
PPA_GPG_PRIVATE_KEY:
|
||||||
required: true
|
required: true
|
||||||
inputs:
|
inputs:
|
||||||
|
ppa_repo:
|
||||||
|
description: Meshtastic PPA to target
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
series:
|
series:
|
||||||
description: 'Ubuntu series to target'
|
description: Ubuntu series to target
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
@ -65,4 +69,4 @@ jobs:
|
|||||||
- name: Publish with dput
|
- name: Publish with dput
|
||||||
if: ${{ github.event_name != 'pull_request_target' && github.event_name != 'pull_request' }}
|
if: ${{ github.event_name != 'pull_request_target' && github.event_name != 'pull_request' }}
|
||||||
run: |
|
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
debian/ci_pack_sdeb.sh
vendored
4
debian/ci_pack_sdeb.sh
vendored
@ -13,8 +13,8 @@ rm -rf pio
|
|||||||
package=$(dpkg-parsechangelog --show-field Source)
|
package=$(dpkg-parsechangelog --show-field Source)
|
||||||
|
|
||||||
rm -rf debian/changelog
|
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"
|
"GitHub Actions Automatic packaging for $PKG_VERSION~$SERIES"
|
||||||
|
|
||||||
# Build the source deb
|
# Build the source deb
|
||||||
debuild -S -nc -k$GPG_KEY_ID
|
debuild -S -nc -k"$GPG_KEY_ID"
|
||||||
|
Loading…
Reference in New Issue
Block a user