Skip to content

[iOS] Replace dummy framework with prebuild phases #99

[iOS] Replace dummy framework with prebuild phases

[iOS] Replace dummy framework with prebuild phases #99

Workflow file for this run

name: iOS - Build develop
on:
pull_request:
branches:
- develop
types: [closed]
jobs:
build:
name: Create new build
if: github.event.pull_request.merged == true
runs-on: [self-hosted, ios-build]
timeout-minutes: 15
steps:
- name: Checkout repo
uses: actions/checkout@v3
continue-on-error: true
with:
clean: false
- name: Build KMP
working-directory: ios
run: |
./scripts/generate-error-messages.sh
./scripts/build-kmp.sh release false true false
- name: Setup tools
working-directory: ios
run: ./scripts/setup.sh
- name: Prepare App Store Connect API key file
env:
APP_STORE_CONNECT_API_KEY_CONTENT: ${{ secrets.APP_STORE_CONNECT_API_KEY_MATEE }}
working-directory: ios
run: echo "$APP_STORE_CONNECT_API_KEY_CONTENT" > AuthKey_Matee.p8
- name: Create a new Alpha build
env:
BUILD_NUMBER: $(echo `date +"%y%m%d%H%M"`)
working-directory: ios
run: swift run --package-path CI/FastlaneRunner fastlaneRunner lane buildAlphaLane
deploy-alpha:
name: Deploy alpha
if: github.event.pull_request.merged == true
needs: build
runs-on: [self-hosted, ios-internal]
timeout-minutes: 15
steps:
- name: Upload the Alpha build to the TestFlight
env:
APP_STORE_CONNECT_API_KEY_CONTENT: ${{ secrets.APP_STORE_CONNECT_API_KEY_MATEE }}
SLACK_URL: ${{ secrets.FASTLANE_SLACK_URL }}
DISTRIBUTE_EXTERNAL: false
working-directory: ios
run: swift run --package-path CI/FastlaneRunner fastlaneRunner lane uploadTestFlightAlphaLane swiftServerPort 2001
# - name: Login to Jira
# uses: atlassian/gajira-login@master
# env:
# JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
# JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
# JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
# - name: Find Jira issue
# id: jira
# uses: atlassian/gajira-find-issue-key@master
# with:
# string: ${{ github.event.pull_request.head.ref }}
# - name: Check Jira issue state
# id: jira_state
# env:
# ISSUE_CODE: ${{ steps.jira.outputs.issue }}
# run: echo "::set-output name=is_issue_valid::$(if [ -z "$ISSUE_CODE" ]; then echo false; else echo true; fi)"
# - name: Retrieve version and build numbers
# id: ipa_numbers
# working-directory: ios
# run: |
# unzip -d ipa ./ipa/A-DevStack.ipa
# echo "::set-output name=version_number::$(defaults read `pwd`/ipa/Payload/DevStack.app/Info CFBundleShortVersionString)"
# echo "::set-output name=build_number::$(defaults read `pwd`/ipa/Payload/DevStack.app/Info CFBundleVersion)"
# rm -rf ipa
# - name: Comment on Jira issue
# if: steps.jira_state.outputs.is_issue_valid == 'true'
# uses: atlassian/gajira-comment@master
# with:
# issue: ${{ steps.jira.outputs.issue }}
# comment: |-
# bq. *Automated message*
# [iOS A-DevStack] ${{ steps.ipa_numbers.outputs.version_number }} build ${{ steps.ipa_numbers.outputs.build_number }} - TestFlight Public link