-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meshtasticd-debian: Fix versioning compliance, add OBS
- Loading branch information
Showing
7 changed files
with
95 additions
and
6 deletions.
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,72 @@ | ||
name: Package Source Debs | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
PPA_GPG_PRIVATE_KEY: | ||
required: true | ||
inputs: | ||
repo: | ||
description: Meshtastic OBS repo to target | ||
required: true | ||
type: string | ||
series: | ||
description: Debian series to target | ||
required: true | ||
type: string | ||
workflow_dispatch: | ||
|
||
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: Import GPG key | ||
uses: crazy-max/ghaction-import-gpg@v6 | ||
with: | ||
gpg_private_key: ${{ secrets.PPA_GPG_PRIVATE_KEY }} | ||
id: gpg | ||
|
||
- 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 |
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
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