mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-16 10:02:05 +00:00
meshtasticd-debian: Build multiple series (#5756)
This commit is contained in:
parent
031aecac66
commit
d21d6c1301
9
.github/workflows/build_debian_src.yml
vendored
9
.github/workflows/build_debian_src.yml
vendored
@ -5,6 +5,11 @@ on:
|
|||||||
secrets:
|
secrets:
|
||||||
PPA_GPG_PRIVATE_KEY:
|
PPA_GPG_PRIVATE_KEY:
|
||||||
required: true
|
required: true
|
||||||
|
inputs:
|
||||||
|
series:
|
||||||
|
description: 'Ubuntu series to target'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@ -42,7 +47,9 @@ jobs:
|
|||||||
working-directory: meshtasticd
|
working-directory: meshtasticd
|
||||||
run: debian/ci_pack_sdeb.sh
|
run: debian/ci_pack_sdeb.sh
|
||||||
env:
|
env:
|
||||||
|
SERIES: ${{ inputs.series }}
|
||||||
GPG_KEY_ID: ${{ steps.gpg.outputs.keyid }}
|
GPG_KEY_ID: ${{ steps.gpg.outputs.keyid }}
|
||||||
|
REVISION: ${{ github.sha }}
|
||||||
|
|
||||||
- name: Get release version string
|
- name: Get release version string
|
||||||
working-directory: meshtasticd
|
working-directory: meshtasticd
|
||||||
@ -54,7 +61,7 @@ jobs:
|
|||||||
- name: Store binaries as an artifact
|
- name: Store binaries as an artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: firmware-debian-${{ steps.version.outputs.long }}-src
|
name: firmware-debian-${{ steps.version.outputs.long }}-${{ inputs.series }}-src
|
||||||
overwrite: true
|
overwrite: true
|
||||||
path: |
|
path: |
|
||||||
meshtasticd_${{ steps.version.outputs.short }}*
|
meshtasticd_${{ steps.version.outputs.short }}*
|
||||||
|
6
.github/workflows/main_matrix.yml
vendored
6
.github/workflows/main_matrix.yml
vendored
@ -129,7 +129,13 @@ jobs:
|
|||||||
board: ${{ matrix.board }}
|
board: ${{ matrix.board }}
|
||||||
|
|
||||||
package-ppa:
|
package-ppa:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
series: [plucky, oracular, noble, jammy]
|
||||||
uses: ./.github/workflows/package_ppa.yml
|
uses: ./.github/workflows/package_ppa.yml
|
||||||
|
with:
|
||||||
|
series: ${{ matrix.series }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
package-raspbian:
|
package-raspbian:
|
||||||
|
11
.github/workflows/package_ppa.yml
vendored
11
.github/workflows/package_ppa.yml
vendored
@ -5,6 +5,11 @@ on:
|
|||||||
secrets:
|
secrets:
|
||||||
PPA_GPG_PRIVATE_KEY:
|
PPA_GPG_PRIVATE_KEY:
|
||||||
required: true
|
required: true
|
||||||
|
inputs:
|
||||||
|
series:
|
||||||
|
description: 'Ubuntu series to target'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
@ -15,6 +20,8 @@ jobs:
|
|||||||
build-debian-src:
|
build-debian-src:
|
||||||
uses: ./.github/workflows/build_debian_src.yml
|
uses: ./.github/workflows/build_debian_src.yml
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
with:
|
||||||
|
series: ${{ inputs.series }}
|
||||||
|
|
||||||
package-ppa:
|
package-ppa:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
@ -50,11 +57,11 @@ jobs:
|
|||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: firmware-debian-${{ steps.version.outputs.long }}-src
|
name: firmware-debian-${{ steps.version.outputs.long }}-${{ inputs.series }}-src
|
||||||
merge-multiple: true
|
merge-multiple: true
|
||||||
|
|
||||||
- name: Display structure of downloaded files
|
- name: Display structure of downloaded files
|
||||||
run: ls -R
|
run: ls -lah
|
||||||
|
|
||||||
- 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' }}
|
||||||
|
7
debian/ci_pack_sdeb.sh
vendored
7
debian/ci_pack_sdeb.sh
vendored
@ -1,9 +1,16 @@
|
|||||||
#!/usr/bin/bash
|
#!/usr/bin/bash
|
||||||
|
export DEBEMAIL="github-actions[bot]@users.noreply.github.com"
|
||||||
export PLATFORMIO_LIBDEPS_DIR=pio/libdeps
|
export PLATFORMIO_LIBDEPS_DIR=pio/libdeps
|
||||||
export PLATFORMIO_PACKAGES_DIR=pio/packages
|
export PLATFORMIO_PACKAGES_DIR=pio/packages
|
||||||
|
|
||||||
# Download libraries to `libdeps`
|
# Download libraries to `libdeps`
|
||||||
platformio pkg install -e native
|
platformio pkg install -e native
|
||||||
|
|
||||||
|
package=$(dpkg-parsechangelog --show-field Source)
|
||||||
|
pkg_version=$(dpkg-parsechangelog --show-field Version | cut -d- -f1)
|
||||||
|
|
||||||
|
dch --create --distribution $SERIES --package $package --newversion $pkg_version-ppa${REVISION::7}~$SERIES \
|
||||||
|
"GitHub Actions Automatic packaging for $SERIES"
|
||||||
|
|
||||||
# Build the source deb
|
# Build the source deb
|
||||||
debuild -S -k$GPG_KEY_ID
|
debuild -S -k$GPG_KEY_ID
|
||||||
|
Loading…
Reference in New Issue
Block a user