Compare commits

..

No commits in common. "9a10021e4f8cb42094df1dca3ef48377a9752ed8" and "58a9d6c54f1b070050499e72cdf00bc6a8c8e25a" have entirely different histories.

View file

@ -222,21 +222,19 @@ jobs:
env:
POSTIT_RUNTIME: linux-x64
run: |
set -e
set -e -x
TAG=$(jq -r '.tag' "$STATE_FILE")
cd /src/_src
echo "→ Building amd64 for POSTIT_GIT_TAG=$TAG"
make deb POSTIT_GIT_TAG="$TAG" POSTIT_RUNTIME=linux-x64
# make deb mv's the produced .deb(s) into /src/ (the
# parent of /src/_src/, $POSTIT_OUT_DIR default).
# Check there, not in the build dir.
DEB_AMD64=$(ls /src/postit_*${TAG}-1_amd64.deb 2>/dev/null || true)
DEB_AMD64=$(ls postit_*${TAG}-1_amd64.deb 2>/dev/null || true)
if [[ -z "$DEB_AMD64" ]]; then
echo "::error::Build .deb amd64 did not produce /src/postit_*${TAG}-1_amd64.deb"
ls -la /src/ /src/_src/ 2>/dev/null
echo "::error::Build .deb amd64 did not produce postit_*${TAG}-1_amd64.deb"
ls -la
exit 1
fi
echo "✓ Built $DEB_AMD64"
set +x
- name: Build .deb arm64
env:
@ -248,19 +246,17 @@ jobs:
echo "→ Building arm64 for POSTIT_GIT_TAG=$TAG"
# Cross-RID .NET depuis un hôte amd64 : standard, pas
# besoin de runner arm64 natif.
# set -x traces every command so a silent failure inside
# 'make deb' (e.g. dpkg-buildpackage aborting after the
# 'mv ... || true' swallows the error) is visible.
make deb POSTIT_GIT_TAG="$TAG" POSTIT_RUNTIME=linux-arm64 || {
echo "::error::make deb for arm64 exited non-zero — see output above"
exit 1
}
# Same check as amd64: verify the .deb landed in /src/.
DEB_ARM64=$(ls /src/postit_*${TAG}-1_arm64.deb 2>/dev/null || true)
make deb POSTIT_GIT_TAG="$TAG" POSTIT_RUNTIME=linux-arm64
# Verify the arm64 .deb was actually produced. Without
# this check, a silent dpkg-buildpackage failure would
# let the step exit 0 (the Makefile's mv || true matches
# any leftover amd64 .deb and exits successfully), and
# the failure would only surface in the next step.
DEB_ARM64=$(ls postit_*${TAG}-1_arm64.deb 2>/dev/null || true)
if [[ -z "$DEB_ARM64" ]]; then
echo "::error::Build .deb arm64 did not produce /src/postit_*${TAG}-1_arm64.deb"
echo "::error::Build .deb arm64 did not produce postit_*${TAG}-1_arm64.deb"
echo "Inspect the dpkg-buildpackage output above for the root cause."
ls -la /src/ /src/_src/ 2>/dev/null
ls -la
exit 1
fi
echo "✓ Built $DEB_ARM64"