mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 10:58:23 +00:00
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:
co-authored by
Claude Opus 5.5
parent
193f69d367
commit
8d90f2cc1b
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user