Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
45626d5
Force cold-boot emulator and rely on file-path installs
shai-almog Oct 9, 2025
f2356e4
Harden emulator installs before running instrumentation
shai-almog Oct 9, 2025
37c0edd
Harden framework readiness and Gradle ID alignment
shai-almog Oct 9, 2025
9ce86e6
Align instrumentation install retries and Gradle namespace
shai-almog Oct 10, 2025
c19a946
Define missing test options snippet constant
shai-almog Oct 10, 2025
e900a0d
Add missing test options snippet constant
shai-almog Oct 10, 2025
70e63b9
Harden framework readiness check before APK installs
shai-almog Oct 10, 2025
09098c1
Harden emulator readiness gating before installs
shai-almog Oct 10, 2025
c927501
Retry non-streamed installs after confirming framework readiness
shai-almog Oct 10, 2025
649481e
Harden emulator readiness and verify APK installs
shai-almog Oct 10, 2025
e4f2db5
Relax screenshot content detection
shai-almog Oct 10, 2025
c1bbc56
Normalize stub activity manifest and modernize Gradle updates
shai-almog Oct 10, 2025
a52c32a
Improve emulator readiness and launch stability
shai-almog Oct 10, 2025
c9d5101
Disable emulator acceleration on CI hosts
shai-almog Oct 10, 2025
76357f3
Stabilize headless ARM emulator startup for UI tests
shai-almog Oct 10, 2025
9a4b7fb
Use x86_64 emulator image for UI tests
shai-almog Oct 10, 2025
cd24441
Harden emulator readiness for x86_64 UI tests
shai-almog Oct 10, 2025
4f044ab
Tighten Android framework readiness checks
shai-almog Oct 10, 2025
128ffeb
Relax Android framework readiness heuristics
shai-almog Oct 10, 2025
82fa15f
Optimize API 35 emulator boot for CI
shai-almog Oct 11, 2025
6115d33
Reduce API 35 emulator disk footprint
shai-almog Oct 11, 2025
be031e2
Install CI GUI dependencies before disk cleanup
shai-almog Oct 11, 2025
3316255
Ensure CI installs GUI deps before cleanup
shai-almog Oct 11, 2025
aa02255
Preserve system PATH in setup workspace env
shai-almog Oct 11, 2025
51c4a0b
Preserve system binaries in build-android-port PATH
shai-almog Oct 11, 2025
cd4ca8f
Preserve system PATH entries in workspace scripts
shai-almog Oct 11, 2025
4fb7c88
Capture current PATH when writing workspace env
shai-almog Oct 11, 2025
e4039e9
Fix env PATH expansion in setup workspace
shai-almog Oct 11, 2025
ad63258
Fix env.sh heredoc expansion
shai-almog Oct 11, 2025
9c36394
Trying manually
shai-almog Oct 11, 2025
734c630
Set full path for xvfb
shai-almog Oct 11, 2025
ffc657b
Fixed YAML to verify xvfb is properly installed
shai-almog Oct 11, 2025
810b39e
Improved adb wait
shai-almog Oct 11, 2025
0519e1f
Initialized the system_server variable
shai-almog Oct 11, 2025
5a3ce17
Changed variable name
shai-almog Oct 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 48 additions & 1 deletion .github/workflows/scripts-android.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: Test Android build scripts

'on':
Expand All @@ -15,11 +14,59 @@ name: Test Android build scripts
jobs:
build-android:
runs-on: ubuntu-latest
timeout-minutes: 90

steps:
- uses: actions/checkout@v4

- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
tool-cache: true
android: false
dotnet: true
haskell: true
large-packages: true
docker-images: true
swap-storage: false # Changed to false - might be removing packages

- name: Install System Dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y xvfb libxrender1 libxtst6 libxi6 xmlstarlet
echo "Verifying xvfb installation:"
ls -la /usr/bin/xvfb-run
which xvfb-run
/usr/bin/xvfb-run --help || true

- name: Additional Cleanup
run: |
sudo rm -rf /usr/local/lib/android/sdk/build-tools/* 2>/dev/null || true
sudo rm -rf /usr/local/lib/android/sdk/platforms/* 2>/dev/null || true
sudo rm -rf /usr/local/lib/android/sdk/platform-tools 2>/dev/null || true
df -h

- name: Setup workspace
run: ./scripts/setup-workspace.sh -q -DskipTests

- name: Build Android port
run: ./scripts/build-android-port.sh -q -DskipTests

- name: Build Hello Codename One Android app
run: ./scripts/build-android-app.sh -q -DskipTests
env:
AVD_CACHE_ROOT: ${{ github.workspace }}/.android-avd
EMULATOR_BOOT_TIMEOUT_SECONDS: 1200
PACKAGE_SERVICE_TIMEOUT_SECONDS: 1200
FRAMEWORK_READY_PRIMARY_TIMEOUT_SECONDS: 300
FRAMEWORK_READY_RESTART_TIMEOUT_SECONDS: 240
EMULATOR_POST_BOOT_GRACE_SECONDS: 30
UI_TEST_TIMEOUT_SECONDS: 1200

- name: Upload UI test artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: hello-codenameone-ui-test-artifacts
path: ${{ env.CN1_UI_TEST_ARTIFACT_DIR }}
if-no-files-found: warn
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
**/.idea/*
**/build/*
**/dist/*
build-artifacts/
*.zip
CodenameOneDesigner/src/version.properties
/Ports/iOSPort/build/
Expand Down Expand Up @@ -81,3 +82,4 @@ pom.xml.tag
!.brokk/style.md
!.brokk/review.md
!.brokk/project.properties
.android-avd/
Loading
Loading