Skip to content

Commit

Permalink
CI: Add iOS Build
Browse files Browse the repository at this point in the history
  • Loading branch information
ksharma-xyz committed Nov 23, 2024
1 parent 246677b commit 4ec5498
Showing 1 changed file with 46 additions and 3 deletions.
49 changes: 46 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ on:
branches: [ main ]

jobs:
build:
android:
runs-on: ubuntu-latest
environment: Firebase
timeout-minutes: 60

steps:
- uses: actions/checkout@v4
name: Setup environment variables
Expand Down Expand Up @@ -51,7 +53,48 @@ jobs:
# run: ./gradlew detekt

- name: Build Debug
run: ./gradlew assembleDebug test
run: ./gradlew :composeApp:assembleDebug test

- name: Build Release
run: ./gradlew assembleRelease test
run: ./gradlew :composeApp:assembleRelease test

iOS:
runs-on: macos-14
timeout-minutes: 60

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: set up JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 21

- name: Set up Kotlin
uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'

- uses: ruby/setup-ruby@v1
with:
bundler-cache: true

- run: brew install swiftlint

- uses: gradle/actions/setup-gradle@v4
with:
cache-disabled: true

- name: Build iOS App - Debug
run: |
xcodebuild -project iosApp/iosApp.xcodeproj \
-scheme iosApp \
-configuration Debug \
OBJROOT=$GITHUB_WORKSPACE/build/ios \
SYMROOT=$GITHUB_WORKSPACE/build/ios \
-destination 'platform=iOS Simulator,name=iPhone 12,OS=latest' \
-allowProvisioningDeviceRegistration \
-allowProvisioningUpdates

0 comments on commit 4ec5498

Please sign in to comment.