Skip to content

Commit ffc657b

Browse files
committed
Fixed YAML to verify xvfb is properly installed
1 parent 734c630 commit ffc657b

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed
Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
---
21
name: Test Android build scripts
32

43
'on':
@@ -16,13 +15,11 @@ jobs:
1615
build-android:
1716
runs-on: ubuntu-latest
1817
timeout-minutes: 90
18+
1919
steps:
2020
- uses: actions/checkout@v4
21-
- name: Install System Dependencies
22-
run: |
23-
sudo apt-get update -y
24-
sudo apt-get install -y xvfb libxrender1 libxtst6 libxi6 xmlstarlet
25-
- name: Free disk space (action)
21+
22+
- name: Free Disk Space (Ubuntu)
2623
uses: jlumbroso/free-disk-space@main
2724
with:
2825
tool-cache: true
@@ -31,42 +28,45 @@ jobs:
3128
haskell: true
3229
large-packages: true
3330
docker-images: true
34-
swap-storage: true
35-
- name: Free disk space for emulator
36-
run: |
37-
sudo rm -rf /usr/share/dotnet
38-
sudo rm -rf /opt/ghc
39-
sudo rm -rf /usr/local/share/boost
40-
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
41-
df -h
42-
- name: Increase swap space for emulator
31+
swap-storage: false # Changed to false - might be removing packages
32+
33+
- name: Install System Dependencies
4334
run: |
44-
sudo swapoff -a
45-
sudo fallocate -l 8G /swapfile
46-
sudo chmod 600 /swapfile
47-
sudo mkswap /swapfile
48-
sudo swapon /swapfile
49-
free -h
50-
- name: Configure emulator timeouts
35+
sudo apt-get update -y
36+
sudo apt-get install -y xvfb libxrender1 libxtst6 libxi6 xmlstarlet
37+
echo "Verifying xvfb installation:"
38+
ls -la /usr/bin/xvfb-run
39+
which xvfb-run
40+
/usr/bin/xvfb-run --help || true
41+
42+
- name: Additional Cleanup
5143
run: |
52-
echo "EMULATOR_BOOT_TIMEOUT_SECONDS=1200" >> "$GITHUB_ENV"
53-
echo "PACKAGE_SERVICE_TIMEOUT_SECONDS=1200" >> "$GITHUB_ENV"
54-
echo "FRAMEWORK_READY_PRIMARY_TIMEOUT_SECONDS=300" >> "$GITHUB_ENV"
55-
echo "FRAMEWORK_READY_RESTART_TIMEOUT_SECONDS=240" >> "$GITHUB_ENV"
56-
echo "EMULATOR_POST_BOOT_GRACE_SECONDS=30" >> "$GITHUB_ENV"
57-
echo "UI_TEST_TIMEOUT_SECONDS=1200" >> "$GITHUB_ENV"
44+
sudo rm -rf /usr/local/lib/android/sdk/build-tools/* 2>/dev/null || true
45+
sudo rm -rf /usr/local/lib/android/sdk/platforms/* 2>/dev/null || true
46+
sudo rm -rf /usr/local/lib/android/sdk/platform-tools 2>/dev/null || true
47+
df -h
48+
5849
- name: Setup workspace
5950
run: ./scripts/setup-workspace.sh -q -DskipTests
51+
6052
- name: Build Android port
6153
run: ./scripts/build-android-port.sh -q -DskipTests
54+
6255
- name: Build Hello Codename One Android app
6356
run: ./scripts/build-android-app.sh -q -DskipTests
6457
env:
6558
AVD_CACHE_ROOT: ${{ github.workspace }}/.android-avd
59+
EMULATOR_BOOT_TIMEOUT_SECONDS: 1200
60+
PACKAGE_SERVICE_TIMEOUT_SECONDS: 1200
61+
FRAMEWORK_READY_PRIMARY_TIMEOUT_SECONDS: 300
62+
FRAMEWORK_READY_RESTART_TIMEOUT_SECONDS: 240
63+
EMULATOR_POST_BOOT_GRACE_SECONDS: 30
64+
UI_TEST_TIMEOUT_SECONDS: 1200
65+
6666
- name: Upload UI test artifacts
6767
if: always()
6868
uses: actions/upload-artifact@v4
6969
with:
7070
name: hello-codenameone-ui-test-artifacts
7171
path: ${{ env.CN1_UI_TEST_ARTIFACT_DIR }}
72-
if-no-files-found: warn
72+
if-no-files-found: warn

0 commit comments

Comments
 (0)