-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[No QA]Followups for HybridApp building on main test #55807
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
27a2851
Update code, add debug
AndrewGable 463e3eb
Tweak debug
AndrewGable 53623ba
Use new npm command and fastfile
AndrewGable 3e84a7d
Merge branch 'main' into andrew-hybrid-build-follow-ups
AndrewGable b4e188c
Add Android script too
AndrewGable e7a0759
Add env for forked PRs
AndrewGable 13bbac4
Try no env to fix env
AndrewGable d7bef9d
Remove env and use if directly
AndrewGable a75800d
Merge branch 'main' into andrew-hybrid-build-follow-ups
AndrewGable fed9f59
Fix logic
AndrewGable 88b5285
Add HybridApp fork comment
AndrewGable 2a0726f
Update url
AndrewGable b136219
Remove debug
AndrewGable 42ae684
Merge branch 'main' into andrew-hybrid-build-follow-ups
AndrewGable 08101e8
Remove more debug
AndrewGable ae953f6
Update job name
AndrewGable 835194a
Fix android build
AndrewGable 93175a2
Add Debuggin
AndrewGable 4c0763d
Set up ruby on Android runners
AndrewGable 47aad8d
Tweak submodule update command
AndrewGable 0aee2cf
Use different export method
AndrewGable 5c49011
Try to skip archive as well
AndrewGable 70dac04
Sync ios standalone and HybridApp settings
AndrewGable 4b771fb
Revert M/E
AndrewGable 236fc8f
Remove debugging
AndrewGable 2336b9a
Remove bundle install
AndrewGable File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
name: Verify HybridApp build | ||
|
||
on: | ||
workflow_call: | ||
pull_request: | ||
types: [opened, synchronize] | ||
branches-ignore: [staging, production] | ||
|
@@ -24,23 +23,35 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
comment_on_fork: | ||
name: Comment on all PRs that are forks | ||
# Only run on pull requests that *are* a fork | ||
if: ${{ github.event.pull_request.head.repo.fork }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Comment on forks | ||
run: | | ||
gh pr comment ${{github.event.pull_request.html_url }} --body \ | ||
":warning: This PR is possibly changing native code, it may cause problems with HybridApp. Please run an AdHoc build to verify that HybridApp will not break. :warning:" | ||
env: | ||
GITHUB_TOKEN: ${{ github.token }} | ||
verify_android: | ||
name: Verify Android HybridApp builds on main | ||
runs-on: ubuntu-latest-xl | ||
# Only run on pull requests that are *not* on a fork | ||
if: ${{ !github.event.pull_request.head.repo.fork }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
token: ${{ secrets.OS_BOTIFY_TOKEN }} | ||
# fetch-depth: 0 is required in order to fetch the correct submodule branch | ||
fetch-depth: 0 | ||
|
||
- name: Update submodule to match main | ||
run: | | ||
git submodule update --init --remote | ||
git fetch | ||
git submodule update --init --remote --depth 1 | ||
cd Mobile-Expensify | ||
git checkout main | ||
|
||
- name: Configure MapBox SDK | ||
|
@@ -52,10 +63,14 @@ jobs: | |
with: | ||
IS_HYBRID_BUILD: 'true' | ||
|
||
- name: Setup Ruby | ||
uses: ruby/[email protected] | ||
with: | ||
bundler-cache: true | ||
|
||
- name: Build Android Debug | ||
working-directory: Mobile-Expensify/Android | ||
run: | | ||
if ! ./gradlew assembleDebug | ||
if ! npm run android-hybrid-build | ||
then | ||
echo "❌ Android HybridApp failed to build: Please reach out to Contributor+ and/or Expensify engineers for help in #expensify-open-source to resolve." | ||
exit 1 | ||
|
@@ -64,20 +79,20 @@ jobs: | |
verify_ios: | ||
name: Verify iOS HybridApp builds on main | ||
runs-on: macos-15-xlarge | ||
# Only run on pull requests that are *not* on a fork | ||
if: ${{ !github.event.pull_request.head.repo.fork }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
token: ${{ secrets.OS_BOTIFY_TOKEN }} | ||
# fetch-depth: 0 is required in order to fetch the correct submodule branch | ||
fetch-depth: 0 | ||
|
||
- name: Update submodule to match main | ||
run: | | ||
git submodule update --init --remote | ||
git fetch | ||
git submodule update --init --remote --depth 1 | ||
cd Mobile-Expensify | ||
git checkout main | ||
|
||
- name: Configure MapBox SDK | ||
|
@@ -94,9 +109,6 @@ jobs: | |
with: | ||
bundler-cache: true | ||
|
||
- name: Install New Expensify Gems | ||
run: bundle install | ||
|
||
- name: Cache Pod dependencies | ||
uses: actions/cache@v4 | ||
id: pods-cache | ||
|
@@ -125,16 +137,7 @@ jobs: | |
export RCT_NO_LAUNCH_PACKAGER=1 | ||
|
||
# Build iOS using xcodebuild | ||
if ! xcodebuild \ | ||
-workspace Mobile-Expensify/iOS/Expensify.xcworkspace \ | ||
-scheme Expensify \ | ||
-configuration Debug \ | ||
-sdk iphonesimulator \ | ||
-arch x86_64 \ | ||
CODE_SIGN_IDENTITY="" \ | ||
CODE_SIGNING_REQUIRED=NO \ | ||
CODE_SIGNING_ALLOWED=NO \ | ||
build | xcpretty | ||
if ! npm run ios-hybrid-build | ||
then | ||
echo "❌ iOS HybridApp failed to build: Please reach out to Contributor+ and/or Expensify engineers for help in #expensify-open-source to resolve." | ||
exit 1 | ||
|
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems fine, but I wonder if we can do an unsigned release build?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we can without keys