Skip to content

fix: v1.0.30 — catch LibPulse.CallError (Bad state) and reconnect on … #25

fix: v1.0.30 — catch LibPulse.CallError (Bad state) and reconnect on …

fix: v1.0.30 — catch LibPulse.CallError (Bad state) and reconnect on … #25

Workflow file for this run

name: Upload to Launchpad PPA
on:
push:
tags:
- 'v*'
workflow_dispatch:
jobs:
ppa-upload:
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
series: [noble]
steps:
- uses: actions/checkout@v4
- name: Install build tools
run: |
sudo apt-get update
sudo apt-get install -y build-essential devscripts debhelper python3-pip python3-venv dpkg-dev
- name: Install uv and build wheels
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.cargo/bin:$PATH"
python3 --version | awk '{split($2,v,"."); print v[1]"."v[2]}' > .python-version
mkdir -p debian/wheels
uv build --wheel --out-dir debian/wheels/
pip3 download --no-deps --dest=debian/wheels dbus-next
- name: Patch changelog for target series
run: |
VERSION=$(python3 -c "
import tomllib
with open('pyproject.toml', 'rb') as f:
print(tomllib.load(f)['project']['version'])
")
SERIES="${{ matrix.series }}"
# Replace the entire first line to avoid basic-regex pitfall where
# (.*) matches literal parens only, leaving the old series in place.
sed -i "1s|.*|arctis-sound-manager (${VERSION}-1~${SERIES}1) ${SERIES}; urgency=medium|" debian/changelog
- name: Import GPG key
run: |
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import
GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format long | grep sec | head -1 | awk '{print $2}' | cut -d/ -f2)
echo "GPG_KEY_ID=$GPG_KEY_ID" >> $GITHUB_ENV
- name: Build source package
run: |
# Use dpkg-buildpackage directly instead of debuild:
# debuild injects --rules-target before extra args, turning
# "-- --no-pre-clean" into "--rules-target --no-pre-clean" which
# calls debian/rules with --no-pre-clean as a make target (fails).
# dpkg-buildpackage -S --no-pre-clean skips debian/rules clean so
# debian/wheels/ is still present when the source is packaged.
dpkg-buildpackage -S -sa -d --no-pre-clean -k"$GPG_KEY_ID"
- name: Upload to PPA
run: |
dput ppa:loteran/arctis-sound-manager ../arctis-sound-manager_*.changes