Files
Balance/.github/workflows/ios.yml
T
wt 0de9b2cf27
Android CI / Build and Test (push) Failing after 13m3s
iOS CI / Build and Test SwiftUI App (push) Canceled after 0s
Build Unsigned iOS and macOS Apps / Build Unsigned iOS IPA (push) Canceled after 0s
Build Unsigned iOS and macOS Apps / Build macOS ZIP (push) Canceled after 0s
updated ci/cd
2026-09-08 01:08:24 +07:00

40 lines
1.0 KiB
YAML

name: iOS CI
on:
push:
branches:
- main
- develop
- issue-*
pull_request:
branches:
- main
- develop
jobs:
build-and-test:
name: Build and Test SwiftUI App
runs-on: macos-26 # Uses Apple Silicon M1/M2 runners
steps:
# Step 1: Check out the repository code
- name: Checkout Repository
uses: actions/checkout@v4
# Step 2: Select the correct Xcode version
- name: Set Xcode Version
run: sudo xcode-select -s /Applications/Xcode_26.6.app/Contents/Developer
# Step 3: Load dependencies if using Swift Package Manager
- name: Resolve Swift Packages
run: xcodebuild -resolvePackageDependencies -project Balance/Balance.xcodeproj -scheme Balance
# Step 4: Build and run tests using xcodebuild
- name: Build and Test
run: |
xcodebuild test \
-project Balance/Balance.xcodeproj \
-scheme Balance \
-destination 'platform=iOS Simulator,name=iPhone 17 Pro Max,OS=26.4.1' \
-quiet