ci: build the standalone app image for the Linux smoke test

packageDeb/packageRpm build from a temporary app image, so
binaries/main/app/Amber didn't exist and the smoke test failed with
'not found'. Run createDistributable first and launch it by absolute path.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
greenart7c3
2026-10-02 07:13:47 -03:00
co-authored by Claude Opus 5.5
parent 193f69d367
commit 8d90f2cc1b
+5 -1
View File
@@ -116,9 +116,13 @@ jobs:
- name: Smoke test packaged app
if: runner.os == 'Linux'
run: |
# packageDeb/Rpm build from a temporary app image; build the
# standalone one to launch.
./gradlew :desktop:createDistributable --no-daemon
AMBER="$PWD/desktop/build/compose/binaries/main/app/Amber/bin/Amber"
export HOME="$RUNNER_TEMP/amber-home" AMBER_DISABLE_TRAY=1
mkdir -p "$HOME"
xvfb-run -a desktop/build/compose/binaries/main/app/Amber/bin/Amber > "$RUNNER_TEMP/amber.log" 2>&1 &
xvfb-run -a "$AMBER" > "$RUNNER_TEMP/amber.log" 2>&1 &
sleep 30
cat "$RUNNER_TEMP/amber.log"
pgrep -f 'binaries/main/app/Amber/bin/Amber' > /dev/null || { echo "::error::Amber exited during startup"; exit 1; }