Compare commits

..

No commits in common. "8435c9578d43b7178853e8ece11180ce5a7f9e8c" and "bfa34e17b9590636fb82257ec36e965f1e4aa1a8" have entirely different histories.

5 changed files with 44 additions and 77 deletions

View File

@ -137,13 +137,6 @@ jobs:
package-native: package-native:
uses: ./.github/workflows/package_amd64.yml uses: ./.github/workflows/package_amd64.yml
build-debian-src:
uses: ./.github/workflows/build_debian_src.yml
with:
series: UNRELEASED
build_location: local
secrets: inherit
test-native: test-native:
uses: ./.github/workflows/test_native.yml uses: ./.github/workflows/test_native.yml
@ -267,7 +260,6 @@ jobs:
package-raspbian, package-raspbian,
package-raspbian-armv7l, package-raspbian-armv7l,
package-native, package-native,
build-debian-src,
] ]
steps: steps:
- name: Checkout - name: Checkout
@ -279,12 +271,8 @@ jobs:
python-version: 3.x python-version: 3.x
- name: Get release version string - name: Get release version string
run: | run: echo "long=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
echo "long=$(./bin/buildinfo.py long)" >> $GITHUB_OUTPUT
echo "deb=$(./bin/buildinfo.py deb)" >> $GITHUB_OUTPUT
id: version id: version
env:
BUILD_LOCATION: local
- name: Create release - name: Create release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
@ -304,17 +292,6 @@ jobs:
merge-multiple: true merge-multiple: true
path: ./output path: ./output
- name: Download source deb
uses: actions/download-artifact@v4
with:
pattern: firmware-debian-${{ steps.version.outputs.deb }}~UNRELEASED-src
merge-multiple: true
path: ./output/debian-src
- name: Zip source deb
working-directory: output
run: zip -j -9 -r ./meshtasticd-${{ steps.version.outputs.deb }}-src.zip ./debian-src
# For diagnostics # For diagnostics
- name: Display structure of downloaded files - name: Display structure of downloaded files
run: ls -lR run: ls -lR
@ -327,7 +304,6 @@ jobs:
./output/meshtasticd_${{ steps.version.outputs.long }}_arm64.deb ./output/meshtasticd_${{ steps.version.outputs.long }}_arm64.deb
./output/meshtasticd_${{ steps.version.outputs.long }}_armhf.deb ./output/meshtasticd_${{ steps.version.outputs.long }}_armhf.deb
./output/meshtasticd_${{ steps.version.outputs.long }}_amd64.deb ./output/meshtasticd_${{ steps.version.outputs.long }}_amd64.deb
./output/meshtasticd-${{ steps.version.outputs.deb }}-src.zip
- name: Bump version.properties - name: Bump version.properties
run: >- run: >-

View File

@ -25,13 +25,13 @@ 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: ppa:meshtastic/daily ppa_repo: daily
series: ${{ matrix.series }} series: ${{ matrix.series }}
secrets: inherit secrets: inherit
package-obs: package-obs:
uses: ./.github/workflows/package_obs.yml uses: ./.github/workflows/package_obs.yml
with: with:
obs_project: home:meshtastic:daily obs_repo: meshtasticd
series: unstable series: unstable
secrets: inherit secrets: inherit

View File

@ -3,15 +3,11 @@ name: Package for OpenSUSE Build Service
on: on:
workflow_call: workflow_call:
secrets: secrets:
OBS_USERNAME:
required: true
OBS_PASSWORD:
required: true
PPA_GPG_PRIVATE_KEY: PPA_GPG_PRIVATE_KEY:
required: true required: true
inputs: inputs:
obs_project: obs_repo:
description: Meshtastic OBS project to target description: Meshtastic OBS repo to target
required: true required: true
type: string type: string
series: series:
@ -68,43 +64,40 @@ jobs:
- name: Display structure of downloaded files - name: Display structure of downloaded files
run: ls -lah run: ls -lah
- name: Configure osc # - name: Configure osc
run: | # shell: bash
# Setup OpenSUSE Build Service credentials # env:
mkdir -p ~/.config/osc # OBS_USERNAME: ${{ secrets.OBS_USERNAME }}
echo "[general]" > ~/.config/osc/oscrc # OBS_PASSWORD: ${{ secrets.OBS_PASSWORD }}
echo "apiurl=https://api.opensuse.org" >> ~/.config/osc/oscrc # run: |
echo "[https://api.opensuse.org]" >> ~/.config/osc/oscrc # mkdir -p ~/.config/osc
echo "user=${{ secrets.OBS_USERNAME }}" >> ~/.config/osc/oscrc # echo -e "[https://api.opensuse.org]\n" > ~/.config/osc/oscrc
echo "pass=${{ secrets.OBS_PASSWORD }}" >> ~/.config/osc/oscrc # echo -e "user = $OBS_USERNAME" >> ~/.config/osc/oscrc
echo "credentials_mgr_class=osc.credentials.PlaintextConfigFileCredentialsManager" >> ~/.config/osc/oscrc # echo -e "pass = $OBS_PASSWORD" >> ~/.config/osc/oscrc
# Create a temporary directory for osc checkout # echo -e "aliases = obs" >> ~/.config/osc/oscrc
mkdir -p osc # # Authenticate to OBS
# osc meta prj -v
# Intentionally fail if credentials are invalid # - name: Upload Package to OBS
# Update secrets if this returns `401` # shell: bash
- name: Verify OBS authentication # run: |
run: osc token # # Define your OBS project and repository
# OBS_PROJECT="application:meshtastic"
# OBS_REPO="${{ inputs.obs_repo }}"
- name: Upload package to OBS # # Create a temporary directory for osc
shell: bash # mkdir -p /tmp/osc/$OBS_PROJECT/$OBS_REPO
working-directory: osc # cd /tmp/osc/$OBS_PROJECT/$OBS_REPO
env:
OBS_PROJECT: ${{ inputs.obs_project }}
OBS_PACKAGE: meshtasticd
run: |
# Initialize the package in the current directory
osc checkout --output-dir . $OBS_PROJECT $OBS_PACKAGE
# Remove the existing package files # # Initialize the package directory
rm -rf *.dsc *.tar.xz # osc checkout $OBS_PROJECT $OBS_REPO
# Copy new package files to the directory # # Copy package files to the osc directory
cp $GITHUB_WORKSPACE/*.dsc . # cp $GITHUB_WORKSPACE/*.dsc .
cp $GITHUB_WORKSPACE/*.tar.xz . # cp $GITHUB_WORKSPACE/*.tar.xz .
# Add/Remove the files # # Add files to osc
osc addremove # osc addremove
# Commit changes and push to OpenSUSE Build Service # # Commit and push the changes
osc commit -m "GitHub Actions: ${{ steps.version.outputs.deb }}~${{ inputs.series }}" # osc commit -m "Automated upload from GitHub Actions"

View File

@ -71,4 +71,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 ${{ inputs.ppa_repo }} meshtasticd_${{ steps.version.outputs.deb }}~${{ inputs.series }}_source.changes dput ppa:meshtastic/${{ inputs.ppa_repo }} meshtasticd_${{ steps.version.outputs.deb }}~${{ inputs.series }}_source.changes

View File

@ -15,15 +15,13 @@ jobs:
uses: ./.github/workflows/package_ppa.yml uses: ./.github/workflows/package_ppa.yml
with: with:
ppa_repo: |- ppa_repo: |-
ppa:meshtastic/${{ 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: # package-obs:
uses: ./.github/workflows/package_obs.yml # uses: ./.github/workflows/package_obs.yml
with: # with:
obs_project: |- # obs_repo: meshtasticd
home:meshtastic:${{ contains(github.event.release.name, 'Beta') && 'beta' || contains(github.event.release.name, 'Alpha') && 'alpha' }} # series: ${{ contains(github.event.release.name, 'Beta') && 'beta' || contains(github.event.release.name, 'Alpha') && 'alpha' }}
series: |- # secrets: inherit
${{ contains(github.event.release.name, 'Beta') && 'beta' || contains(github.event.release.name, 'Alpha') && 'alpha' }}
secrets: inherit