From 8861da1e1dfefa83c8de10d0e44c551097347707 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sat, 19 Sep 2026 13:30:59 +0100 Subject: [PATCH 1/2] log the inputs --- .forgejo/workflows/release.yml | 35 ++++++++++++++++++++++++++++------ Makefile | 4 ++-- 2 files changed, 31 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index d280912..1f3a7e6 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -51,12 +51,36 @@ on: description: 'Publier une release avec suffixe (ex. 1.0.0-rc1) malgré le fail-fast par défaut.' required: false type: boolean - default: false + default: true + workflow_call: + inputs: + tag: + description: 'Tag pazof/yavsc à packager (requis en dispatch, ex. 1.0.6 ou 1.0.7-rc1).' + required: true + type: string + force_unstable: + description: 'Publier une release avec suffixe (ex. 1.0.0-rc1) malgré le fail-fast par défaut.' + required: false + type: boolean + default: true +env: + FORCE_UNSTABLE: ${{ inputs.force_unstable || 'false' }} + TAG: ${{ forgejo.event_name == 'push' && forgejo.ref_name || inputs.tag }} permissions: contents: write jobs: + + log_inputs: + runs-on: docker + container: + image: docker.io/pazof/yavsc-build-env:debian12-dotnet10-android36-v2 + steps: + - name: Log inputs + run: | + echo "TAG=$TAG" + echo "FORCE_UNSTABLE=$FORCE_UNSTABLE" # Job unique : validation tag/CHANGELOG + build amd64 + build # arm64 + publication via l'API REST Forgejo (pas d'actions # tierces Node). @@ -65,7 +89,7 @@ jobs: container: image: docker.io/pazof/yavsc-build-env:debian12-dotnet10-android36-v2 env: - STATE_FILE: /tmp/release-state.json + STATE_FILE: /tmp/release-state steps: - name: Installer les pré-requis de build (debhelper + icônes) # L'image runner fournit déjà dotnet-sdk-10.0, git, jq, @@ -98,13 +122,12 @@ jobs: : > "$STATE_FILE" - name: Clone du repo au tag demandé - env: - TAG: ${{ forgejo.event_name == 'push' && forgejo.ref_name || inputs.tag }} run: | if [[ -z "$TAG" ]]; then echo "::error::No tag provided. In workflow_dispatch, set the 'tag' input." exit 1 fi + echo "→ Cloning repo at tag $TAG" cd /src if [[ ! -d _src/.git ]]; then @@ -122,11 +145,11 @@ jobs: # Persist TAG in the state file. --arg ensures proper # JSON escaping of any special chars. - jq -n --arg tag "$TAG" '{tag: $tag}' > "$STATE_FILE" + echo "$TAG" > "tag.txt" - name: Valider le tag et la section CHANGELOG run: | - TAG=$(jq -r '.tag' "$STATE_FILE") + TAG=$(cat "tag.txt") cd /src/_src echo "Validating tag $TAG" diff --git a/Makefile b/Makefile index 43e7fc5..6da7ce6 100644 --- a/Makefile +++ b/Makefile @@ -22,9 +22,9 @@ # POSTIT_OUT_DIR default: $(CURDIR)/.. (artifacts land here) POSTIT_GIT_URL ?= https://github.com/pazof/yavsc.git -POSTIT_GIT_TAG ?= 1.0.6 +POSTIT_GIT_TAG ?= 1.0.8-rc15 POSTIT_RUNTIME ?= linux-x64 -POSTIT_OUT_DIR ?= $(CURDIR)/.. +POSTIT_OUT_DIR ?= $(CURDIR)/build .PHONY: deb clean source test From 71dcbf653969e642dc8a2ce1b9cbc9a5e5e62463 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sat, 19 Sep 2026 19:30:40 +0100 Subject: [PATCH 2/2] deps are already there --- .forgejo/workflows/release.yml | 30 ------------------------------ 1 file changed, 30 deletions(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index 1f3a7e6..d312d5b 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -91,36 +91,6 @@ jobs: env: STATE_FILE: /tmp/release-state steps: - - name: Installer les pré-requis de build (debhelper + icônes) - # L'image runner fournit déjà dotnet-sdk-10.0, git, jq, - # curl. On ajoute les outils spécifiques au packaging - # Debian (debhelper, imagemagick pour les icônes .png - # via `convert`, librsvg2-bin pour le SVG). - run: | - apt-get update - # Cross-build deps for arm64: - # 1. dpkg --add-architecture arm64 + apt-get update — make - # apt aware of arm64 packages. - # 2. Install the arm64 RUNTIME libs (libc6:arm64, etc.) - # so dpkg-shlibdeps can resolve the .so dependencies - # of the arm64 binaries via the on-host shlibs cache. - # The runtime libs (not -dev:arm64) is what carries - # the SONAME metadata that dpkg-shlibdeps matches. - # 3. crossbuild-essential-arm64 pulls gcc/binutils for - # arm64, plus dpkg-cross CONFIG_SITE files under - # /etc/dpkg-cross/. The cross-gcc is unused for our - # dotnet-only build but harmless. - dpkg --add-architecture arm64 - apt-get update - apt-get install -y --no-install-recommends \ - build-essential debhelper imagemagick librsvg2-bin \ - ca-certificates crossbuild-essential-arm64 \ - libc6:arm64 libstdc++6:arm64 \ - libfontconfig1:arm64 libfreetype6:arm64 \ - libgtk-3-0:arm64 - rm -rf /var/lib/apt/lists/* - : > "$STATE_FILE" - - name: Clone du repo au tag demandé run: | if [[ -z "$TAG" ]]; then