Compare commits
No commits in common. "9a10021e4f8cb42094df1dca3ef48377a9752ed8" and "58a9d6c54f1b070050499e72cdf00bc6a8c8e25a" have entirely different histories.
9a10021e4f
...
58a9d6c54f
1 changed files with 14 additions and 18 deletions
|
|
@ -222,21 +222,19 @@ jobs:
|
||||||
env:
|
env:
|
||||||
POSTIT_RUNTIME: linux-x64
|
POSTIT_RUNTIME: linux-x64
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e -x
|
||||||
TAG=$(jq -r '.tag' "$STATE_FILE")
|
TAG=$(jq -r '.tag' "$STATE_FILE")
|
||||||
cd /src/_src
|
cd /src/_src
|
||||||
echo "→ Building amd64 for POSTIT_GIT_TAG=$TAG"
|
echo "→ Building amd64 for POSTIT_GIT_TAG=$TAG"
|
||||||
make deb POSTIT_GIT_TAG="$TAG" POSTIT_RUNTIME=linux-x64
|
make deb POSTIT_GIT_TAG="$TAG" POSTIT_RUNTIME=linux-x64
|
||||||
# make deb mv's the produced .deb(s) into /src/ (the
|
DEB_AMD64=$(ls postit_*${TAG}-1_amd64.deb 2>/dev/null || true)
|
||||||
# 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)
|
|
||||||
if [[ -z "$DEB_AMD64" ]]; then
|
if [[ -z "$DEB_AMD64" ]]; then
|
||||||
echo "::error::Build .deb amd64 did not produce /src/postit_*${TAG}-1_amd64.deb"
|
echo "::error::Build .deb amd64 did not produce postit_*${TAG}-1_amd64.deb"
|
||||||
ls -la /src/ /src/_src/ 2>/dev/null
|
ls -la
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "✓ Built $DEB_AMD64"
|
echo "✓ Built $DEB_AMD64"
|
||||||
|
set +x
|
||||||
|
|
||||||
- name: Build .deb arm64
|
- name: Build .deb arm64
|
||||||
env:
|
env:
|
||||||
|
|
@ -248,19 +246,17 @@ jobs:
|
||||||
echo "→ Building arm64 for POSTIT_GIT_TAG=$TAG"
|
echo "→ Building arm64 for POSTIT_GIT_TAG=$TAG"
|
||||||
# Cross-RID .NET depuis un hôte amd64 : standard, pas
|
# Cross-RID .NET depuis un hôte amd64 : standard, pas
|
||||||
# besoin de runner arm64 natif.
|
# besoin de runner arm64 natif.
|
||||||
# set -x traces every command so a silent failure inside
|
make deb POSTIT_GIT_TAG="$TAG" POSTIT_RUNTIME=linux-arm64
|
||||||
# 'make deb' (e.g. dpkg-buildpackage aborting after the
|
# Verify the arm64 .deb was actually produced. Without
|
||||||
# 'mv ... || true' swallows the error) is visible.
|
# this check, a silent dpkg-buildpackage failure would
|
||||||
make deb POSTIT_GIT_TAG="$TAG" POSTIT_RUNTIME=linux-arm64 || {
|
# let the step exit 0 (the Makefile's mv || true matches
|
||||||
echo "::error::make deb for arm64 exited non-zero — see output above"
|
# any leftover amd64 .deb and exits successfully), and
|
||||||
exit 1
|
# the failure would only surface in the next step.
|
||||||
}
|
DEB_ARM64=$(ls postit_*${TAG}-1_arm64.deb 2>/dev/null || true)
|
||||||
# Same check as amd64: verify the .deb landed in /src/.
|
|
||||||
DEB_ARM64=$(ls /src/postit_*${TAG}-1_arm64.deb 2>/dev/null || true)
|
|
||||||
if [[ -z "$DEB_ARM64" ]]; then
|
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."
|
echo "Inspect the dpkg-buildpackage output above for the root cause."
|
||||||
ls -la /src/ /src/_src/ 2>/dev/null
|
ls -la
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo "✓ Built $DEB_ARM64"
|
echo "✓ Built $DEB_ARM64"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue