Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GitHub Actions workflow to build iOS demos (by @NowSecure) #3125

Merged
merged 1 commit into from
Jan 22, 2025

Conversation

cpholguera
Copy link
Collaborator

@cpholguera cpholguera commented Jan 22, 2025

Automate iOS Demos Build with GitHub Actions

Summary

This PR introduces a GitHub Actions workflow to automate the build process for all iOS demo applications. The workflow dynamically discovers demo projects and generates unsigned .ipa files that can be downloaded and tested on jailbroken devices.

Key Features

  • Automatic Discovery:

    • Finds all demo directories under demos/ios/ matching the pattern MASTG-DEMO-*.
    • Builds each demo separately using a dynamic matrix strategy.
  • Build Process:

    • Installs necessary dependencies (ldid, cocoapods).
    • Replaces required project files (e.g., MastgTest.swift, Info.plist) from each demo.
    • Updates the iOS deployment target to 14.4 for compatibility.
    • Compiles the project with Xcode without code signing.
    • Manually packages the app into an .ipa file.
  • Artifact Upload:

    • The generated IPA files are uploaded as workflow artifacts for easy downloading and testing.

Trigger Conditions

  • The workflow is triggered when:
    • Changes are made to the demos/** directory.
    • A pull request is opened against the master branch.
    • It is manually triggered via the GitHub Actions UI.

Parallelization

  • The build process supports parallel execution (up to 3 demos at a time), improving build efficiency.

How to Use

  1. Add or modify iOS demo projects in the demos/ios/ directory.
  2. Push changes to the repository or open a pull request.
  3. Download the generated .ipa files from the GitHub Actions "Artifacts" section.

@cpholguera cpholguera changed the title Add GitHub Actions workflow to build iOS demos Add GitHub Actions workflow to build iOS demos (by @NowSecure) Jan 22, 2025
@cpholguera cpholguera merged commit 7fa666e into master Jan 22, 2025
4 checks passed
@cpholguera cpholguera deleted the build-ios-demos branch January 22, 2025 08:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant