Skip to content

Add GitHub Actions for Android and iOS compilation on pull requests#365

Open
Copilot wants to merge 5 commits into
mainfrom
copilot/fix-6210735-193185263-06b9db94-8be3-40e8-846b-9b1483fe0ac0
Open

Add GitHub Actions for Android and iOS compilation on pull requests#365
Copilot wants to merge 5 commits into
mainfrom
copilot/fix-6210735-193185263-06b9db94-8be3-40e8-846b-9b1483fe0ac0

Conversation

Copilot AI commented Nov 3, 2025

Copy link
Copy Markdown
Contributor

Implements automated compilation testing for Android and iOS on pull request events to catch build failures early.

Changes

New Workflows

  • android-build.yml - Builds Android library with Gradle on ubuntu-latest (Java 11, Node 18)
  • ios-build.yml - Builds iOS library with xcodebuild on macos-latest (Ruby 3.0, CocoaPods, iPhone 14 simulator)

Triggers & Optimization

  • Runs on PR open, sync, reopen
  • Path filters prevent unnecessary runs (only fires when android/, ios/, src/, package.json, or workflow files change)

Security & Debugging

  • Explicit contents: read permissions (GITHUB_TOKEN)
  • Gradle wrapper validation
  • Build reports/logs uploaded as artifacts on failure (7-day retention)

Documentation

  • Added .github/workflows/README.md with workflow details and local testing instructions
  • Updated main README with CI section for contributors

Example

When a PR modifies Android source:

on:
  pull_request:
    paths:
      - 'android/**'
      - 'src/**'

→ Triggers Android build workflow only, skips iOS

Warning

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
    • Triggering command: /usr/lib/jvm/temurin-17-jdk-amd64/bin/java --add-opens java.base/java.util=ALL-UNNAMED --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-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 -XX:MaxMetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx512m -Dfile.encoding=UTF-8 -Duser.country -Duser.language=en -Duser.variant -cp /home/REDACTED/.gradle/wrapper/dists/gradle-7.2-bin/2dnblmf4td7x66yl1d74lt32g/gradle-7.2/lib/gradle-launcher-7.2.jar org.gradle.launcher.daemon.bootstrap.GradleDaemon 7.2 (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Implement Github action for testing compilation of project</issue_title>
<issue_description>Mobile Device Environment
Provide a list of operating systems on which this issue is relevant.

  • Device: Android and IOS
  • OS: Most recent version

Application Environment
Provide information about your development environment:

  • RN Bluetooth Classic version: main branch or tag

Describe the bug
Implement some github actions that are responsible for testing both Android and Ios compilation when PRs are open. Separate actions should be available for the IOS and Android environments. Once we have the action in place to compile, we can start adding tests for automation.
</issue_description>

<agent_instructions>Review and research whether it's possible to create Github Actions for both Android and IOS compilation. I want to run these on PR open and modification to ensure that the changes compile correctly. </agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 4 commits November 3, 2025 15:07
Co-authored-by: kenjdavidson <6210735+kenjdavidson@users.noreply.github.com>
Co-authored-by: kenjdavidson <6210735+kenjdavidson@users.noreply.github.com>
Co-authored-by: kenjdavidson <6210735+kenjdavidson@users.noreply.github.com>
Co-authored-by: kenjdavidson <6210735+kenjdavidson@users.noreply.github.com>
Copilot AI changed the title [WIP] Implement Github action for testing compilation of project Add GitHub Actions for Android and iOS compilation on pull requests Nov 3, 2025
Copilot AI requested a review from kenjdavidson November 3, 2025 15:14
@kenjdavidson kenjdavidson marked this pull request as ready for review November 3, 2025 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Github action for testing compilation of project

2 participants