|
28 | 28 | - name: Build bin-appimage |
29 | 29 | run: nix build .#bin-appimage |
30 | 30 |
|
| 31 | + |
| 32 | + - name: Install OpenGL libs |
| 33 | + run: | |
| 34 | + sudo apt-get update |
| 35 | + sudo apt-get install -y \ |
| 36 | + libgl1 \ |
| 37 | + libegl1 \ |
| 38 | + libopengl0 |
| 39 | +
|
| 40 | + - name: Smoke test (Linux) |
| 41 | + run: | |
| 42 | + set +e |
| 43 | + timeout 10 ./result/logos-app.AppImage --appimage-extract-and-run -platform offscreen 2>&1 | tee /tmp/logos-launch.log |
| 44 | + CODE=${PIPESTATUS[0]} |
| 45 | + set -e |
| 46 | + if grep -qE "QQmlApplicationEngine failed|module.*is not installed|Cannot assign|failed to load component" /tmp/logos-launch.log; then |
| 47 | + echo "❌ Critical QML errors" |
| 48 | + cat /tmp/logos-launch.log |
| 49 | + exit 1 |
| 50 | + fi |
| 51 | + if [ "$CODE" -ne 124 ] && [ "$CODE" -ne 0 ]; then |
| 52 | + echo "❌ App crashed with exit code $CODE" |
| 53 | + cat /tmp/logos-launch.log |
| 54 | + exit 1 |
| 55 | + fi |
| 56 | + echo "✅ Smoke test passed" |
| 57 | +
|
31 | 58 | - name: Rename AppImage with architecture |
32 | 59 | run: | |
33 | 60 | arch="${{ matrix.arch }}" |
|
51 | 78 | - name: Build bin-macos-app |
52 | 79 | run: nix build .#bin-macos-app |
53 | 80 |
|
| 81 | + - name: Smoke test |
| 82 | + run: | |
| 83 | + ./result/LogosApp.app/Contents/MacOS/LogosApp -platform offscreen > /tmp/logos-launch.log 2>&1 & |
| 84 | + APP_PID=$! |
| 85 | + sleep 10 |
| 86 | + if grep -qE "QQmlApplicationEngine failed|module.*is not installed|Cannot assign|failed to load component" /tmp/logos-launch.log; then |
| 87 | + echo "❌ Critical QML errors detected" |
| 88 | + cat /tmp/logos-launch.log |
| 89 | + kill $APP_PID 2>/dev/null |
| 90 | + exit 1 |
| 91 | + fi |
| 92 | + if kill -0 $APP_PID 2>/dev/null; then |
| 93 | + kill $APP_PID |
| 94 | + echo "✅ App launched and ran for 10s" |
| 95 | + else |
| 96 | + echo "❌ App crashed" |
| 97 | + cat /tmp/logos-launch.log |
| 98 | + exit 1 |
| 99 | + fi |
| 100 | +
|
54 | 101 | - name: Package app bundle as tarball |
55 | 102 | run: | |
56 | 103 | app=$(find result/ -name '*.app' -maxdepth 1 -print -quit) |
|
0 commit comments