CI / Formatting, tests and builds (push) Failing after 3s
scripts/build-linux-packages.sh assemble les paquets avec nfpm, épinglé avec son condensat: binaire dans /usr/bin, viewer dans /usr/share/rustscreen/viewer, dépendance libpipewire-0.3-0 (Debian, Ubuntu) ou pipewire-libs (Fedora). GoReleaser les publie avec le reste. nfpm directement plutôt que les paquets de GoReleaser: sans construction propre, GoReleaser ne fait que des paquets « all », qui installeraient un binaire x86_64 sur une machine ARM. L'hôte trouve désormais le viewer dans ../share/rustscreen/viewer en plus d'à côté de l'exécutable. Le script refuse un binaire construit dans Nix, qui chargerait la glibc de /nix/store. Vérifié: paquets amd64 avec la bonne dépendance, binaire extrait du .deb qui sert le viewer installé, publication simulée avec les quatre fichiers dans SHA256SUMS. Refs #51, #97 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
71 lines
2.4 KiB
YAML
71 lines
2.4 KiB
YAML
# Release of a `vX.Y.Z` tag (#97), run by `.gitea/workflows/release.yml`.
|
|
#
|
|
# GoReleaser does not compile anything here: the Rust stack needs libvpx,
|
|
# PipeWire and the viewer built first, which the pipeline does with its own
|
|
# scripts. It takes the finished artifacts and publishes the release: Gitea
|
|
# release, attachments, SHA256SUMS, notes. A rerun on the same tag replaces
|
|
# them instead of stacking copies.
|
|
#
|
|
# Local check, without publishing:
|
|
# goreleaser release --snapshot --clean --skip=publish
|
|
version: 2
|
|
|
|
project_name: rustscreen
|
|
|
|
# Not `dist/`: `--clean` empties it, and the Windows installer is built there.
|
|
dist: dist/goreleaser
|
|
|
|
# A skipped build, declared Rust so that GoReleaser does not look for a Go
|
|
# module.
|
|
builds:
|
|
- builder: rust
|
|
skip: true
|
|
|
|
gitea_urls:
|
|
api: https://gitea-nubo.hopledge.com/api/v1
|
|
download: https://gitea-nubo.hopledge.com
|
|
|
|
# The pipeline token is GITEA_TOKEN; a GITHUB_TOKEN set by the runner must not
|
|
# send GoReleaser to GitHub.
|
|
force_token: gitea
|
|
|
|
# What the release ships: the binary, the AppImage, the .deb and the .rpm,
|
|
# built beforehand and gathered in `dist/release` (GoReleaser only globs
|
|
# inside the repository). The packages come from nfpm directly: see
|
|
# `scripts/build-linux-packages.sh` for why not GoReleaser's own. A missing
|
|
# file fails the release rather than publishing an incomplete one.
|
|
release:
|
|
gitea:
|
|
owner: heap
|
|
name: rustscreen
|
|
name_template: "v{{ .Version }}"
|
|
mode: replace
|
|
replace_existing_artifacts: true
|
|
extra_files:
|
|
- glob: "dist/release/rustscreen-{{ .Version }}-x86_64.AppImage"
|
|
- glob: "dist/release/rustscreen-cli"
|
|
- glob: "dist/release/rustscreen-cli_{{ .Version }}_amd64.deb"
|
|
- glob: "dist/release/rustscreen-cli-{{ .Version }}-1.x86_64.rpm"
|
|
|
|
checksum:
|
|
name_template: SHA256SUMS
|
|
algorithm: sha256
|
|
extra_files:
|
|
- glob: "dist/release/rustscreen-{{ .Version }}-x86_64.AppImage"
|
|
- glob: "dist/release/rustscreen-cli"
|
|
- glob: "dist/release/rustscreen-cli_{{ .Version }}_amd64.deb"
|
|
- glob: "dist/release/rustscreen-cli-{{ .Version }}-1.x86_64.rpm"
|
|
|
|
# `--snapshot` (local check): the artifacts are named after this version.
|
|
snapshot:
|
|
version_template: "{{ .Version }}-snapshot"
|
|
|
|
# Used when `docs/releases/vX.Y.Z.md` does not exist; otherwise the pipeline
|
|
# passes that file with `--release-notes`.
|
|
changelog:
|
|
use: git
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- "^chore\\(deps\\)"
|