Private
Public Access
1
0

[gtk] gtk build workflow
Some checks failed
GTK RPM Release / build-gtk-rpm-release (push) Failing after 9m17s

This commit is contained in:
2026-04-12 17:18:48 -07:00
parent 803018dacf
commit cfeb38cb51
3 changed files with 190 additions and 6 deletions

View File

@@ -5,14 +5,20 @@ all: setup
setup: build/
meson build
VER_RAW := $(shell git -C .. describe --tags --abbrev=0 2>/dev/null || git -C .. describe --tags 2>/dev/null || printf '0.0.0')
VER := $(patsubst v%,%,$(VER_RAW))
VER_RAW := $(shell git -C .. describe --tags --match 'release/gtk/*' --abbrev=0 2>/dev/null || true)
VER := $(patsubst release/gtk/%,%,$(VER_RAW))
TMP := $(shell mktemp -d)
rpm:
git -C .. archive --format=tar.gz --prefix=kordophone/ -o $(TMP)/v$(VER).tar.gz HEAD
RPM_SOURCE := $(TMP)/$(VER).tar.gz
.PHONY: check-version
check-version:
@test -n "$(VER_RAW)" || { echo "Could not determine GTK release version from git tags." >&2; echo "Expected a tag reachable from HEAD matching release/gtk/<version>." >&2; exit 1; }
@test "$(VER)" != "$(VER_RAW)" || { echo "Invalid GTK release tag: $(VER_RAW)" >&2; echo "Expected format: release/gtk/<version>." >&2; exit 1; }
rpm: check-version
git -C .. archive --format=tar.gz --prefix=kordophone/ -o $(RPM_SOURCE) HEAD
rpmbuild -ba dist/rpm/kordophone.spec --define "_sourcedir $(TMP)" --define "app_version $(VER)"
deb:
deb: check-version
./dist/deb/build-deb.sh $(VER)
.PHONY: flatpak