-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55807 from Expensify/andrew-hybrid-build-follow-ups
[No QA]Followups for HybridApp building on main test
- Loading branch information
Showing
3 changed files
with
42 additions
and
28 deletions.
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