Skip to content

Add optimistic auth pending state, refactor code #14922

Add optimistic auth pending state, refactor code

Add optimistic auth pending state, refactor code #14922

# Reminder: If this workflow's name changes, update the name in the dependent workflow at .github/workflows/failureNotifier.yml.
name: Remote Build iOS
on:
workflow_dispatch:
inputs:
mobile_expensify_pr:
description: 'Mobile-Expensify PR number to use for hybrid build'
required: false
type: string
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:
build:
runs-on: ${{ github.repository_owner == 'Expensify' && 'blacksmith-12vcpu-macos-latest' || 'macos-latest' }}
env:
DEVELOPER_DIR: /Applications/Xcode_26.2.app/Contents/Developer
strategy:
fail-fast: false
matrix:
include:
- scheme: 'New Expensify Dev'
configuration: 'DebugDevelopment'
is_hybrid_build: false
- scheme: 'Expensify Dev'
configuration: 'Debug'
is_hybrid_build: true
steps:
- name: Checkout
uses: useblacksmith/checkout@c9796daa2a4bdebdab5bd16be2c09a70cd4e1121 # v1
with:
submodules: ${{ matrix.is_hybrid_build || false }}
token: ${{ secrets.OS_BOTIFY_TOKEN }}
- name: Setup Node
uses: ./.github/actions/composite/setupNode
with:
IS_HYBRID_BUILD: ${{ matrix.is_hybrid_build && 'true' || 'false' }}
- name: Setup Ruby
# v1.310.0
uses: ruby/setup-ruby@afeafc3d1ab54a631816aba4c914a0081c12ff2f
with:
bundler-cache: true
- name: Checkout specific Mobile-Expensify PR
if: ${{ matrix.is_hybrid_build && github.event.inputs.mobile_expensify_pr }}
run: |
cd Mobile-Expensify
git fetch origin pull/${{ github.event.inputs.mobile_expensify_pr }}/head:pr-${{ github.event.inputs.mobile_expensify_pr }}
git checkout pr-${{ github.event.inputs.mobile_expensify_pr }}
echo "Checked out Mobile-Expensify PR #${{ github.event.inputs.mobile_expensify_pr }}"
- 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 - iOS
# rock v3
uses: callstackincubator/ios@08a533dbeda6adec39f94d08d820091514d1f7af
env:
GITHUB_TOKEN: ${{ github.token }}
IS_HYBRID_APP: ${{ matrix.is_hybrid_build }}
with:
destination: simulator
scheme: ${{ matrix.scheme }}
configuration: ${{ matrix.configuration }}
comment-bot: false