mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-06 11:39:32 +00:00
Compare commits
No commits in common. "33e5a04508b37e2b430d84b74a38f48abb2336f5" and "9421eba0275afdc34fd2331cacd1f363485fd86e" have entirely different histories.
33e5a04508
...
9421eba027
8
.github/workflows/build_debian_src.yml
vendored
8
.github/workflows/build_debian_src.yml
vendored
@ -7,11 +7,7 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
inputs:
|
inputs:
|
||||||
series:
|
series:
|
||||||
description: Ubuntu/Debian series to target
|
description: Ubuntu series to target
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
build_location:
|
|
||||||
description: Location where build will execute
|
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
@ -51,8 +47,6 @@ jobs:
|
|||||||
working-directory: meshtasticd
|
working-directory: meshtasticd
|
||||||
run: |
|
run: |
|
||||||
echo "deb=$(./bin/buildinfo.py deb)" >> $GITHUB_OUTPUT
|
echo "deb=$(./bin/buildinfo.py deb)" >> $GITHUB_OUTPUT
|
||||||
env:
|
|
||||||
BUILD_LOCATION: ${{ inputs.build_location }}
|
|
||||||
id: version
|
id: version
|
||||||
|
|
||||||
- name: Fetch libdeps, package debian source
|
- name: Fetch libdeps, package debian source
|
||||||
|
10
.github/workflows/nightly.yml
vendored
10
.github/workflows/nightly.yml
vendored
@ -17,3 +17,13 @@ jobs:
|
|||||||
uses: trunk-io/trunk-action@782e83f803ca6e369f035d64c6ba2768174ba61b
|
uses: trunk-io/trunk-action@782e83f803ca6e369f035d64c6ba2768174ba61b
|
||||||
with:
|
with:
|
||||||
trunk-token: ${{ secrets.TRUNK_TOKEN }}
|
trunk-token: ${{ secrets.TRUNK_TOKEN }}
|
||||||
|
package-ppa:
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
series: [plucky, oracular, noble, jammy]
|
||||||
|
uses: ./.github/workflows/package_ppa.yml
|
||||||
|
with:
|
||||||
|
ppa_repo: daily
|
||||||
|
series: ${{ matrix.series }}
|
||||||
|
secrets: inherit
|
||||||
|
37
.github/workflows/nightly_debian.yml
vendored
37
.github/workflows/nightly_debian.yml
vendored
@ -1,37 +0,0 @@
|
|||||||
name: Nightly Debian Packaging
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: 0 9 * * *
|
|
||||||
workflow_dispatch:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
paths:
|
|
||||||
- debian/**
|
|
||||||
- .github/workflows/nightly_debian.yml
|
|
||||||
- .github/workflows/build_debian_src.yml
|
|
||||||
- .github/workflows/package_ppa.yml
|
|
||||||
- .github/workflows/package_obs.yml
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
packages: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
package-ppa:
|
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
series: [plucky, oracular, noble, jammy]
|
|
||||||
uses: ./.github/workflows/package_ppa.yml
|
|
||||||
with:
|
|
||||||
ppa_repo: daily
|
|
||||||
series: ${{ matrix.series }}
|
|
||||||
secrets: inherit
|
|
||||||
|
|
||||||
package-obs:
|
|
||||||
uses: ./.github/workflows/package_obs.yml
|
|
||||||
with:
|
|
||||||
obs_repo: meshtasticd
|
|
||||||
series: unstable
|
|
||||||
secrets: inherit
|
|
103
.github/workflows/package_obs.yml
vendored
103
.github/workflows/package_obs.yml
vendored
@ -1,103 +0,0 @@
|
|||||||
name: Package for OpenSUSE Build Service
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_call:
|
|
||||||
secrets:
|
|
||||||
PPA_GPG_PRIVATE_KEY:
|
|
||||||
required: true
|
|
||||||
inputs:
|
|
||||||
obs_repo:
|
|
||||||
description: Meshtastic OBS repo to target
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
series:
|
|
||||||
description: Debian series to target
|
|
||||||
required: true
|
|
||||||
type: string
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
packages: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-debian-src:
|
|
||||||
uses: ./.github/workflows/build_debian_src.yml
|
|
||||||
secrets: inherit
|
|
||||||
with:
|
|
||||||
series: ${{ inputs.series }}
|
|
||||||
build_location: obs
|
|
||||||
|
|
||||||
package-obs:
|
|
||||||
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 OpenSUSE Build Service deps
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
echo 'deb http://download.opensuse.org/repositories/openSUSE:/Tools/xUbuntu_24.04/ /' | sudo tee /etc/apt/sources.list.d/openSUSE:Tools.list
|
|
||||||
curl -fsSL https://download.opensuse.org/repositories/openSUSE:Tools/xUbuntu_24.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/openSUSE_Tools.gpg > /dev/null
|
|
||||||
sudo apt-get update -y --fix-missing
|
|
||||||
sudo apt-get install -y osc
|
|
||||||
|
|
||||||
- name: Get release version string
|
|
||||||
working-directory: meshtasticd
|
|
||||||
run: |
|
|
||||||
echo "deb=$(./bin/buildinfo.py deb)" >> $GITHUB_OUTPUT
|
|
||||||
env:
|
|
||||||
BUILD_LOCATION: obs
|
|
||||||
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: Configure osc
|
|
||||||
# shell: bash
|
|
||||||
# env:
|
|
||||||
# OBS_USERNAME: ${{ secrets.OBS_USERNAME }}
|
|
||||||
# OBS_PASSWORD: ${{ secrets.OBS_PASSWORD }}
|
|
||||||
# run: |
|
|
||||||
# mkdir -p ~/.config/osc
|
|
||||||
# echo -e "[https://api.opensuse.org]\n" > ~/.config/osc/oscrc
|
|
||||||
# echo -e "user = $OBS_USERNAME" >> ~/.config/osc/oscrc
|
|
||||||
# echo -e "pass = $OBS_PASSWORD" >> ~/.config/osc/oscrc
|
|
||||||
# echo -e "aliases = obs" >> ~/.config/osc/oscrc
|
|
||||||
# # Authenticate to OBS
|
|
||||||
# osc meta prj -v
|
|
||||||
|
|
||||||
# - name: Upload Package to OBS
|
|
||||||
# shell: bash
|
|
||||||
# run: |
|
|
||||||
# # Define your OBS project and repository
|
|
||||||
# OBS_PROJECT="application:meshtastic"
|
|
||||||
# OBS_REPO="${{ inputs.obs_repo }}"
|
|
||||||
|
|
||||||
# # Create a temporary directory for osc
|
|
||||||
# mkdir -p /tmp/osc/$OBS_PROJECT/$OBS_REPO
|
|
||||||
# cd /tmp/osc/$OBS_PROJECT/$OBS_REPO
|
|
||||||
|
|
||||||
# # Initialize the package directory
|
|
||||||
# osc checkout $OBS_PROJECT $OBS_REPO
|
|
||||||
|
|
||||||
# # Copy package files to the osc directory
|
|
||||||
# cp $GITHUB_WORKSPACE/*.dsc .
|
|
||||||
# cp $GITHUB_WORKSPACE/*.tar.xz .
|
|
||||||
|
|
||||||
# # Add files to osc
|
|
||||||
# osc addremove
|
|
||||||
|
|
||||||
# # Commit and push the changes
|
|
||||||
# osc commit -m "Automated upload from GitHub Actions"
|
|
6
.github/workflows/package_ppa.yml
vendored
6
.github/workflows/package_ppa.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Package for Launchpad PPA
|
name: Package Launchpad PPA
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
@ -14,6 +14,7 @@ on:
|
|||||||
description: Ubuntu series to target
|
description: Ubuntu series to target
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
@ -25,7 +26,6 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
with:
|
||||||
series: ${{ inputs.series }}
|
series: ${{ inputs.series }}
|
||||||
build_location: ppa
|
|
||||||
|
|
||||||
package-ppa:
|
package-ppa:
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
@ -55,8 +55,6 @@ jobs:
|
|||||||
working-directory: meshtasticd
|
working-directory: meshtasticd
|
||||||
run: |
|
run: |
|
||||||
echo "deb=$(./bin/buildinfo.py deb)" >> $GITHUB_OUTPUT
|
echo "deb=$(./bin/buildinfo.py deb)" >> $GITHUB_OUTPUT
|
||||||
env:
|
|
||||||
BUILD_LOCATION: ppa
|
|
||||||
id: version
|
id: version
|
||||||
|
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
|
9
.github/workflows/release_channels.yml
vendored
9
.github/workflows/release_channels.yml
vendored
@ -2,7 +2,7 @@ name: Trigger release workflows upon Publish
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [published, released]
|
types: [published]
|
||||||
|
|
||||||
permissions: read-all
|
permissions: read-all
|
||||||
|
|
||||||
@ -18,10 +18,3 @@ jobs:
|
|||||||
${{ contains(github.event.release.name, 'Beta') && 'beta' || contains(github.event.release.name, 'Alpha') && 'alpha' }}
|
${{ contains(github.event.release.name, 'Beta') && 'beta' || contains(github.event.release.name, 'Alpha') && 'alpha' }}
|
||||||
series: ${{ matrix.series }}
|
series: ${{ matrix.series }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
# package-obs:
|
|
||||||
# uses: ./.github/workflows/package_obs.yml
|
|
||||||
# with:
|
|
||||||
# obs_repo: meshtasticd
|
|
||||||
# series: ${{ contains(github.event.release.name, 'Beta') && 'beta' || contains(github.event.release.name, 'Alpha') && 'alpha' }}
|
|
||||||
# secrets: inherit
|
|
||||||
|
1
.github/workflows/update_protobufs.yml
vendored
1
.github/workflows/update_protobufs.yml
vendored
@ -12,7 +12,6 @@ jobs:
|
|||||||
submodules: true
|
submodules: true
|
||||||
|
|
||||||
- name: Update submodule
|
- name: Update submodule
|
||||||
if: ${{ github.ref == 'refs/heads/master' }}
|
|
||||||
run: |
|
run: |
|
||||||
git submodule update --remote protobufs
|
git submodule update --remote protobufs
|
||||||
|
|
||||||
|
@ -2,7 +2,6 @@ import configparser
|
|||||||
import subprocess
|
import subprocess
|
||||||
import os
|
import os
|
||||||
run_number = os.getenv('GITHUB_RUN_NUMBER', '0')
|
run_number = os.getenv('GITHUB_RUN_NUMBER', '0')
|
||||||
build_location = os.getenv('BUILD_LOCATION', 'local')
|
|
||||||
|
|
||||||
def readProps(prefsLoc):
|
def readProps(prefsLoc):
|
||||||
"""Read the version of our project as a string"""
|
"""Read the version of our project as a string"""
|
||||||
@ -12,8 +11,8 @@ def readProps(prefsLoc):
|
|||||||
version = dict(config.items("VERSION"))
|
version = dict(config.items("VERSION"))
|
||||||
verObj = dict(
|
verObj = dict(
|
||||||
short="{}.{}.{}".format(version["major"], version["minor"], version["build"]),
|
short="{}.{}.{}".format(version["major"], version["minor"], version["build"]),
|
||||||
long="unset",
|
|
||||||
deb="unset",
|
deb="unset",
|
||||||
|
long="unset",
|
||||||
)
|
)
|
||||||
|
|
||||||
# Try to find current build SHA if if the workspace is clean. This could fail if git is not installed
|
# Try to find current build SHA if if the workspace is clean. This could fail if git is not installed
|
||||||
@ -31,12 +30,12 @@ def readProps(prefsLoc):
|
|||||||
# # short for 'dirty', we want to keep our verstrings source for protobuf reasons
|
# # short for 'dirty', we want to keep our verstrings source for protobuf reasons
|
||||||
# suffix = sha + "-d"
|
# suffix = sha + "-d"
|
||||||
verObj["long"] = "{}.{}".format(verObj["short"], suffix)
|
verObj["long"] = "{}.{}".format(verObj["short"], suffix)
|
||||||
verObj["deb"] = "{}.{}~{}{}".format(verObj["short"], run_number, build_location, sha)
|
verObj["deb"] = "{}-{}~ppa{}".format(verObj["short"], run_number, sha)
|
||||||
except:
|
except:
|
||||||
# print("Unexpected error:", sys.exc_info()[0])
|
# print("Unexpected error:", sys.exc_info()[0])
|
||||||
# traceback.print_exc()
|
# traceback.print_exc()
|
||||||
verObj["long"] = verObj["short"]
|
verObj["long"] = verObj["short"]
|
||||||
verObj["deb"] = "{}.{}~{}".format(verObj["short"], run_number, build_location)
|
verObj["deb"] = "{}-{}~ppa".format(verObj["short"], run_number)
|
||||||
|
|
||||||
# print("firmware version " + verStr)
|
# print("firmware version " + verStr)
|
||||||
return verObj
|
return verObj
|
||||||
|
2
debian/changelog
vendored
2
debian/changelog
vendored
@ -1,4 +1,4 @@
|
|||||||
meshtasticd (2.5.19.0) UNRELEASED; urgency=medium
|
meshtasticd (2.5.19) UNRELEASED; urgency=medium
|
||||||
|
|
||||||
* Initial packaging
|
* Initial packaging
|
||||||
|
|
||||||
|
2
debian/ci_changelog.sh
vendored
2
debian/ci_changelog.sh
vendored
@ -2,6 +2,6 @@
|
|||||||
export DEBEMAIL="github-actions[bot]@users.noreply.github.com"
|
export DEBEMAIL="github-actions[bot]@users.noreply.github.com"
|
||||||
PKG_VERSION=$(python3 bin/buildinfo.py short)
|
PKG_VERSION=$(python3 bin/buildinfo.py short)
|
||||||
|
|
||||||
dch --newversion "$PKG_VERSION.0" \
|
dch --newversion "$PKG_VERSION-1" \
|
||||||
--distribution UNRELEASED \
|
--distribution UNRELEASED \
|
||||||
"GitHub Actions Automatic version bump"
|
"GitHub Actions Automatic version bump"
|
||||||
|
Loading…
Reference in New Issue
Block a user