songsplit als Git-Submodul (tools/songsplit) mit Aufrufskript, Make-Zielen und Aufnahme ins Paket (#1080)

Submodul auf Commit 7bbc6b7 (https, öffentlich). tools/songsplit.sh richtet die Python-Umgebung nur auf Befehl ein
(fragt vorher) und reicht alles andere an songsplit weiter. Das Paket enthält Quelltext, Spezifikation, Skript und
Lizenz, nicht die Python-Umgebung. Release-Workflow checkt Submodule aus und prüft den Paketinhalt. Worktree-Skripte
holen und lösen Submodule.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-02 14:20:14 +01:00
parent 652a200599
commit b5b53b67e2
11 changed files with 222 additions and 7 deletions

View File

@ -11,6 +11,9 @@ on:
paths:
- 'packaging/**'
- '.gitea/workflows/release.yml'
- '.gitmodules'
- 'tools/songsplit'
- 'tools/songsplit.sh'
jobs:
arch-package:
@ -22,7 +25,10 @@ jobs:
- name: Werkzeuge installieren
run: pacman -Syu --noconfirm --needed git nodejs rust alsa-lib
# Das Analysewerkzeug songsplit liegt als Submodul (tools/songsplit) und kommt mit ins Paket.
- uses: actions/checkout@v4
with:
submodules: true
# makepkg verweigert die Arbeit als root: eigener Benutzer.
- name: Paket bauen
@ -32,6 +38,15 @@ jobs:
su builder -c 'cd packaging/arch && makepkg -f --nocheck --noconfirm'
ls -la packaging/arch/*.pkg.tar.zst
# Selbstprüfung: songsplit, sein Aufrufskript und die Lizenz müssen im Paket liegen.
- name: Paket enthält songsplit
run: |
list="$(tar --zstd -tf packaging/arch/*.pkg.tar.zst)"
for f in usr/bin/singtrainer-songsplit usr/share/singtrainer/songsplit/pyproject.toml usr/share/singtrainer/songsplit/src usr/share/licenses/singtrainer/songsplit-LICENSE; do
echo "$list" | grep -q "$f" || { echo "Fehlt im Paket: $f"; exit 1; }
done
echo "$list" | grep -E 'songsplit' | head -20
- uses: actions/upload-artifact@v3
with:
name: pacman-paket