build: Paketbau für .deb und Arch-Paket vorbereiten
Tauri-Bundle: .deb hängt von podman ab und installiert die Aufgaben nach /usr/share/coding-bench/tasks. Die App findet diesen Ordner, wenn weder Konfiguration noch Datenordner Aufgaben angeben. PKGBUILD, Desktop-Eintrag und Gitea-Workflow (.deb und Arch-Paket, Start bei Tag v* oder manuell). Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
57
.gitea/workflows/release.yml
Normal file
57
.gitea/workflows/release.yml
Normal file
@ -0,0 +1,57 @@
|
||||
# Release-Pakete: .deb (Ubuntu/Debian) und Arch-Paket (CachyOS/Arch).
|
||||
# Startet bei einem Tag v* oder manuell (workflow_dispatch). Die Artefakte hängen am Lauf.
|
||||
name: release
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
|
||||
jobs:
|
||||
deb:
|
||||
runs-on: ubuntu-24.04
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Systemabhängigkeiten
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libwebkit2gtk-4.1-dev build-essential curl wget file \
|
||||
libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev patchelf
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 24
|
||||
- uses: dtolnay/rust-toolchain@stable
|
||||
- run: npm ci
|
||||
- run: npm run tauri build -- --bundles deb
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: coding-bench-deb
|
||||
path: src-tauri/target/release/bundle/deb/*.deb
|
||||
|
||||
arch:
|
||||
runs-on: ubuntu-24.04
|
||||
container: archlinux:latest
|
||||
steps:
|
||||
- name: Pakete für Arch
|
||||
run: |
|
||||
pacman -Syu --noconfirm --needed base-devel git nodejs npm rust \
|
||||
webkit2gtk-4.1 gtk3 librsvg libayatana-appindicator podman sudo
|
||||
useradd -m builder
|
||||
echo "builder ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/builder
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
path: src
|
||||
- name: Quellarchiv und Paket bauen
|
||||
run: |
|
||||
cd src
|
||||
VERSION=$(sed -n 's/^pkgver=//p' packaging/arch/PKGBUILD)
|
||||
git archive --prefix=coding-bench-$VERSION/ -o /tmp/coding-bench-$VERSION.tar.gz HEAD
|
||||
mkdir -p /home/builder/pkg
|
||||
cp packaging/arch/PKGBUILD /tmp/coding-bench-$VERSION.tar.gz /home/builder/pkg/
|
||||
chown -R builder:builder /home/builder/pkg
|
||||
su builder -c "cd /home/builder/pkg && makepkg -s --noconfirm -f"
|
||||
cp /home/builder/pkg/*.pkg.tar.zst src/
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: coding-bench-arch
|
||||
path: src/*.pkg.tar.zst
|
||||
Reference in New Issue
Block a user