From 4378d8d0278561b1431ba3f3b84e11ec6f16f61d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikl=C3=B3s=20Fazekas?= Date: Fri, 15 May 2026 12:39:45 +0200 Subject: [PATCH] ci: add debug logging for Android npx resolution failure --- .github/workflows/ci.yml | 38 ++++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 28396e8d..5ff8ccfb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -432,13 +432,32 @@ jobs: restore-keys: | ${{ runner.os }}-android-build-${{ env.ANDROID_API_LEVEL }}- + - name: Debug environment before Gradle + if: steps.android-build-cache.outputs.cache-hit != 'true' + working-directory: example/android + run: | + echo "=== PATH ===" + echo "$PATH" | tr ':' '\n' + echo "=== which npx ===" + which npx || echo "npx NOT FOUND in PATH" + echo "=== which node ===" + which node || echo "node NOT FOUND in PATH" + echo "=== npx version ===" + npx --version || echo "npx failed" + echo "=== node_modules/.bin contents ===" + ls ../node_modules/.bin/ | head -20 || echo "no node_modules/.bin" + echo "=== disk space ===" + df -h / | tail -1 + echo "=== node_modules exists ===" + ls -d ../node_modules/ && echo "yes" || echo "NO - node_modules missing!" + - name: Build Android app if: steps.android-build-cache.outputs.cache-hit != 'true' working-directory: example/android env: JAVA_OPTS: "-XX:MaxHeapSize=6g" run: | - ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=x86_64 + ./gradlew assembleDebug --no-daemon --console=plain --stacktrace -PreactNativeArchitectures=x86_64 - name: Save Android build cache if: steps.android-build-cache.outputs.cache-hit != 'true' @@ -627,13 +646,28 @@ jobs: restore-keys: | ${{ runner.os }}-android-legacy-build-${{ env.ANDROID_API_LEVEL }}- + - name: Debug environment before Gradle (legacy) + if: steps.android-build-cache.outputs.cache-hit != 'true' + working-directory: example/android + run: | + echo "=== PATH ===" + echo "$PATH" | tr ':' '\n' + echo "=== which npx ===" + which npx || echo "npx NOT FOUND in PATH" + echo "=== which node ===" + which node || echo "node NOT FOUND in PATH" + echo "=== disk space ===" + df -h / | tail -1 + echo "=== node_modules exists ===" + ls -d ../node_modules/ && echo "yes" || echo "NO - node_modules missing!" + - name: Build Android app if: steps.android-build-cache.outputs.cache-hit != 'true' working-directory: example/android env: JAVA_OPTS: "-XX:MaxHeapSize=6g" run: | - ./gradlew assembleDebug --no-daemon --console=plain -PreactNativeArchitectures=x86_64 + ./gradlew assembleDebug --no-daemon --console=plain --stacktrace -PreactNativeArchitectures=x86_64 - name: Save Android build cache if: steps.android-build-cache.outputs.cache-hit != 'true'