Harden Android CI Node/Gradle integration for react-native-reanimated evaluation - #4
Closed
King-Austin with Copilot wants to merge 3 commits into
Closed
King-Austin with Copilot wants to merge 3 commits into
King-Austin with Copilot wants to merge 3 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Agent-Logs-Url: https://github.com/King-Austin/Smart_Classroom_Attendance/sessions/9c1a8c41-d217-4e32-a057-ccdd8153d5b2 Co-authored-by: King-Austin <133551655+King-Austin@users.noreply.github.com>
Agent-Logs-Url: https://github.com/King-Austin/Smart_Classroom_Attendance/sessions/9c1a8c41-d217-4e32-a057-ccdd8153d5b2 Co-authored-by: King-Austin <133551655+King-Austin@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix Android build failure in GitHub Actions
Harden Android CI Node/Gradle integration for react-native-reanimated evaluation
May 20, 2026
King-Austin
marked this pull request as ready for review
May 21, 2026 21:11
There was a problem hiding this comment.
Pull request overview
This PR repairs and hardens the Android GitHub Actions workflow so Gradle can reliably execute Node during react-native-reanimated evaluation, and makes the workflow definition valid YAML.
Changes:
- Replaced the previously HTML-escaped (invalid) workflow content with proper YAML.
- Pinned the Node runtime to
20.19.0and added a step to expose Node path details for downstream steps. - Added Gradle robustness tweaks (
chmod +xongradlew,--stacktrace) and least-privilege workflow permissions (contents: read).
Comments suppressed due to low confidence (1)
.github/workflows/build-android.yml:64
- Same issue here:
PATH: ${{ env.NODE_BIN_DIR }}:${{ env.PATH }}referencesenv.PATH, which is unset in this workflow, so PATH can become effectively justNODE_BIN_DIR:. Use$GITHUB_PATHonce (preferred) or prepend using the shell’s$PATHto avoid breaking the environment for Gradle.
env:
PATH: ${{ env.NODE_BIN_DIR }}:${{ env.PATH }}
NODE_BINARY: ${{ env.NODE_BINARY }}
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+54
to
+56
| env: | ||
| PATH: ${{ env.NODE_BIN_DIR }}:${{ env.PATH }} | ||
| NODE_BINARY: ${{ env.NODE_BINARY }} |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The Android GitHub Actions job was failing while evaluating
:react-native-reanimatedbecause the Gradle build step’snodeinvocation exited non-zero. This PR updates the Android workflow so Node is explicitly available/compatible during Gradle evaluation and the workflow definition is valid and deterministic.Workflow normalization + runtime pinning
20.19.0for stable compatibility with RN/Gradle tooling in CI.Make Node explicitly available to Gradle subprocesses
NODE_BINARYandNODE_BIN_DIRtoGITHUB_ENV.react-native-reanimated’snode-based resolution can run reliably.Android build-step robustness
chmod +x android/gradlewbefore Gradle execution.--stacktraceto Gradle invocations for actionable CI diagnostics.Workflow token hardening
permissions: contents: readWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
dl.google.com/usr/lib/jvm/temurin-17-jdk-amd64/bin/java /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED --add-opens=java.base/java.nio.charset=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.xml/javax.xml.namespace=ALL-UNNAMED -Xmx1536m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-8.14.3-all/10utluxaxniiv4wxiphsi49nj/gradle-8.14.3/lib/gradle-daemon-main-8.14.3.jar(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This pull request was created from Copilot chat.