-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
meshtasticd-debian: Fix Beta promotions, deb versioning compliance, add OBS #5785
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,37 @@ | ||
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 |
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,103 @@ | ||
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" |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Trigger release workflows upon Publish | |
|
||
on: | ||
release: | ||
types: [published] | ||
types: [published, released] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should correctly capture Beta "promotions", as the |
||
|
||
permissions: read-all | ||
|
||
|
@@ -18,3 +18,10 @@ jobs: | |
${{ contains(github.event.release.name, 'Beta') && 'beta' || contains(github.event.release.name, 'Alpha') && 'alpha' }} | ||
series: ${{ matrix.series }} | ||
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 |
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will run nightly and whenever a change is made to the debian packaging itself.