Fix device back after same-tab fullscreen pre-insert leaving the pre-… #1331
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
| # Reminder: If this workflow's name changes, update the name in the dependent workflow at .github/workflows/failureNotifier.yml. | |
| name: Remote Build Android | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| app_pull_request_url: | |
| description: 'The Expensify/App pull request URL. Its description is scanned for a MOBILE-EXPENSIFY entry.' | |
| required: false | |
| default: '' | |
| mobile_expensify_pull_request_url: | |
| description: 'The Expensify/Mobile-Expensify pull request URL to check out the submodule. Overrides MOBILE-EXPENSIFY set in the App PR description.' | |
| required: false | |
| default: '' | |
| reviewed_code: | |
| description: I reviewed this pull request and verified that it does not contain any malicious code. | |
| type: boolean | |
| required: true | |
| default: false | |
| push: | |
| branches-ignore: [staging, production, cherry-pick-*] | |
| paths-ignore: ['docs/**', 'contributingGuides/**', 'help/**', '.github/**', 'scripts/**', 'tests/**'] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
| jobs: | |
| # Validates the actor and that they reviewed the PR before any token is used or untrusted App PR code is checked out. | |
| prep: | |
| uses: ./.github/workflows/validateBuildRequest.yml | |
| with: | |
| REVIEWED_CODE: ${{ inputs.reviewed_code || false }} | |
| secrets: | |
| OS_BOTIFY_COMMIT_TOKEN: ${{ secrets.OS_BOTIFY_COMMIT_TOKEN }} | |
| resolveRefs: | |
| needs: [prep] | |
| uses: ./.github/workflows/resolveBuildRefs.yml | |
| with: | |
| APP_PULL_REQUEST_URL: ${{ inputs.app_pull_request_url }} | |
| MOBILE_EXPENSIFY_PULL_REQUEST_URL: ${{ inputs.mobile_expensify_pull_request_url }} | |
| secrets: | |
| OS_BOTIFY_TOKEN: ${{ secrets.OS_BOTIFY_TOKEN }} | |
| build: | |
| needs: [prep, resolveRefs] | |
| runs-on: ${{ github.repository_owner == 'Expensify' && 'blacksmith-16vcpu-ubuntu-2404' || 'blacksmith-2vcpu-ubuntu-2404' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - variant: 'developmentDebug' | |
| is_hybrid_build: false | |
| - variant: 'Debug' | |
| is_hybrid_build: true | |
| steps: | |
| - name: Checkout | |
| uses: useblacksmith/checkout@1c9394c220d293645707b625ba9d79685f093a8f # v1 | |
| with: | |
| ref: ${{ needs.resolveRefs.outputs.APP_REF }} | |
| submodules: ${{ matrix.is_hybrid_build || false }} | |
| token: ${{ secrets.OS_BOTIFY_TOKEN }} | |
| - name: Checkout Mobile-Expensify to specified branch or commit | |
| if: ${{ matrix.is_hybrid_build && needs.resolveRefs.outputs.MOBILE_EXPENSIFY_REF != '' }} | |
| run: | | |
| cd Mobile-Expensify | |
| git fetch origin ${{ needs.resolveRefs.outputs.MOBILE_EXPENSIFY_REF }} | |
| git checkout ${{ needs.resolveRefs.outputs.MOBILE_EXPENSIFY_REF }} | |
| echo "Checked out Mobile-Expensify PR #${{ needs.resolveRefs.outputs.MOBILE_EXPENSIFY_PR }} (${{ needs.resolveRefs.outputs.MOBILE_EXPENSIFY_REF }})" | |
| - name: Setup Node | |
| uses: ./.github/actions/composite/setupNode | |
| with: | |
| IS_HYBRID_BUILD: ${{ matrix.is_hybrid_build && 'true' || 'false' }} | |
| - name: Configure AWS Credentials | |
| # v6 | |
| uses: aws-actions/configure-aws-credentials@99214aa6889fcddfa57764031d71add364327e59 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| aws-region: us-east-1 | |
| - name: Rock Remote Build - Android | |
| # rock v3 | |
| uses: callstackincubator/android@1a7d52dfe3ca195ccbe5ad2f06c15f2fc3835115 | |
| env: | |
| GITHUB_ACTOR: ${{ github.actor }} | |
| GITHUB_TOKEN: ${{ github.token }} | |
| IS_HYBRID_APP: ${{ matrix.is_hybrid_build }} | |
| with: | |
| variant: ${{ matrix.variant }} | |
| rock-build-extra-params: '--extra-params -PreactNativeArchitectures=arm64-v8a,x86_64' | |
| comment-bot: false |