Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
d9ca3df
Added google service for iOS official
Rohit3523 Jul 30, 2025
150ac9b
Added google service in iOS experimental
Rohit3523 Jul 30, 2025
9189939
Add firebase json file in iOS during build
Rohit3523 Jul 30, 2025
58940c9
Update .github/actions/build-ios/action.yml
Rohit3523 Jul 30, 2025
ffc998a
Update action.yml
Rohit3523 Jul 31, 2025
723c5db
Update action.yml
Rohit3523 Jul 31, 2025
5251663
Update action.yml
Rohit3523 Jul 31, 2025
c02b9d7
Update action.yml
Rohit3523 Jul 31, 2025
a4ed713
Update action.yml
Rohit3523 Jul 31, 2025
765a223
Remove bugsnag key from iOS official upload
Rohit3523 Jul 31, 2025
083d1c1
Remove bugsnag key from iOS experimental upload
Rohit3523 Jul 31, 2025
79fb3e8
Changes for supported version
Rohit3523 Aug 3, 2025
9185fba
remove eslint need temp
Rohit3523 Aug 3, 2025
baebfc8
re added
Rohit3523 Aug 3, 2025
94dbb6d
upload app-supportedversions.json to artifact
Rohit3523 Aug 4, 2025
4a54dcc
using job ref in artifact
Rohit3523 Aug 4, 2025
801e683
Change
Rohit3523 Aug 4, 2025
da09b7a
More change
Rohit3523 Aug 4, 2025
2cf5ce3
rerun action
Rohit3523 Aug 6, 2025
0f6996a
revert
Rohit3523 Aug 6, 2025
b9a71a5
Update build-android.yml
Rohit3523 Aug 6, 2025
9456fc4
fix android official
Rohit3523 Aug 6, 2025
8c7d7b1
Update action.yml
Rohit3523 Aug 7, 2025
d90e970
Fix typo
Rohit3523 Aug 7, 2025
9725787
Added verbose for iOS official
Rohit3523 Aug 7, 2025
e0541e7
Remove verbose
Rohit3523 Aug 7, 2025
200310a
remove cat supported version
Rohit3523 Aug 8, 2025
687d596
remove whitespace
Rohit3523 Aug 8, 2025
810035f
increase ios build timeout to 60 mins
Rohit3523 Aug 8, 2025
068c977
just to rerun flow
Rohit3523 Aug 8, 2025
7ba473f
revert
Rohit3523 Aug 8, 2025
148a0a4
Removed e2e flow
Rohit3523 Aug 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion .github/actions/build-ios/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,22 @@ inputs:
BUGSNAG_KEY_OFFICIAL:
description: 'Bugsnag API Key Official'
required: true
GOOGLE_SERVICES_IOS:
description: 'Google service file for official version'
required: true
GOOGLE_SERVICES_IOS_EXPERIMENTAL:
description: 'Google service file for experimental version'
required: true

runs:
using: "composite"
steps:
- name: Remove simulator and its cache
run : |
xcrun simctl delete all
sudo rm -rf ~/Library/Developer/CoreSimulator/Caches/*
shell: bash
Comment thread
diegolmello marked this conversation as resolved.

- name: Set up Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
Expand Down Expand Up @@ -89,6 +101,18 @@ runs:
fi
shell: bash

- name: Set Google Services
working-directory: ios
run: |
if [[ $APP_STORE_CONNECT_API_KEY_BASE64 ]]; then
if [[ ${{ inputs.type }} == "official" ]]; then
echo ${{ inputs.GOOGLE_SERVICES_IOS }} | base64 --decode > GoogleService-Info.plist
else
echo ${{ inputs.GOOGLE_SERVICES_IOS_EXPERIMENTAL }} | base64 --decode > GoogleService-Info.plist
fi
fi
shell: bash

- name: Build iOS app
working-directory: ios
run: |
Expand Down Expand Up @@ -147,4 +171,4 @@ runs:
if: ${{ inputs.type == 'official' }}
with:
name: ios-build-official-info-plist
path: ios/RocketChatRN/Info.plist
path: ios/RocketChatRN/Info.plist
20 changes: 20 additions & 0 deletions .github/actions/fetch-supported-versions/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Fetch supported versions
description: Fetch supported versions from Cloud
inputs:
build_name:
description: Name of the build
required: true

runs:
using: "composite"
steps:
- name: Fetch supported versions from Cloud
shell: bash
run: sh ./scripts/fetch-supported-versions.sh
Comment thread
Rohit3523 marked this conversation as resolved.

- name: Update supported versions
uses: actions/upload-artifact@v4
with:
name: supported-versions-${{ inputs.build_name }}
path: ./app-supportedversions.json

6 changes: 3 additions & 3 deletions .github/actions/generate-version-code/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ runs:
if: ${{ inputs.os == 'ios' }}
shell: bash
run: |
VERSIONCODE=$(bundle exec fastlane ios get_testflight_version | grep 'VERSIONCODE=' | cut -d '=' -f2)
VERSIONCODE=$(bundle exec fastlane ios get_testflight_version official:${{ inputs.official }} | grep 'VERSIONCODE=' | cut -d '=' -f2)
echo "LATEST_VERSIONCODE=$VERSIONCODE" >> $GITHUB_OUTPUT
working-directory: ios
env:
Expand All @@ -94,7 +94,7 @@ runs:
if: ${{ inputs.os == 'android' }}
shell: bash
run: |
VERSIONCODE=$(bundle exec fastlane android version_code | grep 'VERSIONCODE=' | cut -d '=' -f2)
VERSIONCODE=$(bundle exec fastlane android version_code official:${{ inputs.official }}| grep 'VERSIONCODE=' | cut -d '=' -f2)
echo "LATEST_VERSIONCODE=$VERSIONCODE" >> $GITHUB_OUTPUT
working-directory: android

Expand All @@ -111,4 +111,4 @@ runs:
echo "VERSIONCODE=$VERSIONCODE" >> $GITHUB_OUTPUT

echo "### 📦 Version Code Generated" >> $GITHUB_STEP_SUMMARY
echo "\`Version Code: $VERSIONCODE\`" >> $GITHUB_STEP_SUMMARY
echo "\`Version Code: $VERSIONCODE\`" >> $GITHUB_STEP_SUMMARY
11 changes: 9 additions & 2 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ jobs:

- name: Checkout and Setup Node
uses: ./.github/actions/setup-node

- name: Fetch supported versions from Cloud
uses: ./.github/actions/fetch-supported-versions
with:
build_name: 'android-experimental'

- name: Generate Version Code
id: version
Expand Down Expand Up @@ -61,6 +66,8 @@ jobs:
needs: [build-android]
if: ${{ inputs.trigger == 'pr' }}
environment: upload_experimental_android
outputs:
VERSIONCODE: ${{ needs.build-android.outputs.VERSIONCODE }}
steps:
- run: echo "Waiting for manual approval..."

Expand All @@ -83,7 +90,7 @@ jobs:
trigger: ${{ inputs.trigger }}
FASTLANE_GOOGLE_SERVICE_ACCOUNT: ${{ secrets.FASTLANE_GOOGLE_SERVICE_ACCOUNT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSIONCODE: ${{ needs.build-android.outputs.VERSIONCODE }}
VERSIONCODE: ${{ needs.upload-hold.outputs.VERSIONCODE }}

upload-internal:
name: Internal Sharing
Expand All @@ -103,4 +110,4 @@ jobs:
type: experimental
FASTLANE_GOOGLE_SERVICE_ACCOUNT: ${{ secrets.FASTLANE_GOOGLE_SERVICE_ACCOUNT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSIONCODE: ${{ needs.build-android.outputs.VERSIONCODE }}
VERSIONCODE: ${{ needs.build-android.outputs.VERSIONCODE }}
12 changes: 9 additions & 3 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ jobs:
- name: Checkout and Setup Node
uses: ./.github/actions/setup-node

- name: Fetch supported versions from Cloud
uses: ./.github/actions/fetch-supported-versions
with:
build_name: 'ios-experimental'

- name: Generate Version Code
id: version
uses: ./.github/actions/generate-version-code
Expand All @@ -48,7 +53,7 @@ jobs:

- name: Build iOS
uses: ./.github/actions/build-ios
timeout-minutes: 40
timeout-minutes: 60
with:
type: experimental
MATCH_KEYCHAIN_NAME: ${{ secrets.MATCH_KEYCHAIN_NAME }}
Expand All @@ -59,6 +64,8 @@ jobs:
FASTLANE_REPO_PAT: ${{ secrets.FASTLANE_REPO_PAT }}
BUGSNAG_KEY: ${{ secrets.BUGSNAG_KEY }}
APP_STORE_CONNECT_API_KEY_BASE64: ${{ secrets.APP_STORE_CONNECT_API_KEY_BASE64 }}
GOOGLE_SERVICES_IOS: ${{ secrets.GOOGLE_SERVICES_IOS }}
GOOGLE_SERVICES_IOS_EXPERIMENTAL: ${{ secrets.GOOGLE_SERVICES_IOS_EXPERIMENTAL }}
VERSIONCODE: ${{ steps.version.outputs.VERSIONCODE }}

upload-ios:
Expand All @@ -84,6 +91,5 @@ jobs:
APP_STORE_CONNECT_API_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
FASTLANE_REPO_PAT: ${{ secrets.FASTLANE_REPO_PAT }}
BUGSNAG_KEY: ${{ secrets.BUGSNAG_KEY }}
APP_STORE_CONNECT_API_KEY_BASE64: ${{ secrets.APP_STORE_CONNECT_API_KEY_BASE64 }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 8 additions & 1 deletion .github/workflows/build-official-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ jobs:
- name: Checkout and Setup Node
uses: ./.github/actions/setup-node

- name: Fetch supported versions from Cloud
uses: ./.github/actions/fetch-supported-versions
with:
build_name: 'android-official'

- name: Generate Version Code
id: version
uses: ./.github/actions/generate-version-code
Expand Down Expand Up @@ -61,6 +66,8 @@ jobs:
if: ${{ inputs.trigger == 'pr' }}
environment: upload_official_android
needs: [build-android]
outputs:
VERSIONCODE: ${{ needs.build-android.outputs.VERSIONCODE }}
steps:
- run: echo "Waiting for manual approval..."

Expand All @@ -80,7 +87,7 @@ jobs:
trigger: ${{ inputs.trigger }}
FASTLANE_GOOGLE_SERVICE_ACCOUNT: ${{ secrets.FASTLANE_GOOGLE_SERVICE_ACCOUNT }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSIONCODE: ${{ needs.build-android.outputs.VERSIONCODE }}
VERSIONCODE: ${{ needs.upload-hold.outputs.VERSIONCODE }}

upload-internal:
name: Internal Sharing
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/build-official-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ jobs:
- name: Checkout and Setup Node
uses: ./.github/actions/setup-node

- name: Fetch supported versions from Cloud
uses: ./.github/actions/fetch-supported-versions
with:
build_name: 'ios-official'

- name: Generate Version Code
id: version
uses: ./.github/actions/generate-version-code
Expand All @@ -48,7 +53,7 @@ jobs:

- name: Build iOS
uses: ./.github/actions/build-ios
timeout-minutes: 40
timeout-minutes: 60
with:
type: official
MATCH_KEYCHAIN_NAME: ${{ secrets.MATCH_KEYCHAIN_NAME }}
Expand All @@ -60,6 +65,8 @@ jobs:
BUGSNAG_KEY: ${{ secrets.BUGSNAG_KEY_OFFICIAL }}
BUGSNAG_KEY_OFFICIAL: ${{ secrets.BUGSNAG_KEY_OFFICIAL }}
APP_STORE_CONNECT_API_KEY_BASE64: ${{ secrets.APP_STORE_CONNECT_API_KEY_BASE64 }}
GOOGLE_SERVICES_IOS: ${{ secrets.GOOGLE_SERVICES_IOS }}
GOOGLE_SERVICES_IOS_EXPERIMENTAL: ${{ secrets.GOOGLE_SERVICES_IOS_EXPERIMENTAL }}
VERSIONCODE: ${{ steps.version.outputs.VERSIONCODE }}

upload-hold:
Expand Down Expand Up @@ -94,6 +101,5 @@ jobs:
APP_STORE_CONNECT_API_KEY_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ID }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_API_KEY_ISSUER_ID }}
FASTLANE_REPO_PAT: ${{ secrets.FASTLANE_REPO_PAT }}
BUGSNAG_KEY: ${{ secrets.BUGSNAG_KEY }}
APP_STORE_CONNECT_API_KEY_BASE64: ${{ secrets.APP_STORE_CONNECT_API_KEY_BASE64 }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading