Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
89 changes: 89 additions & 0 deletions .github/workflows/ios-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: iOS Build and Test

on:
push:
branches: [main, develop]
paths:
- 'ios/**'
pull_request:
branches: [main]
paths:
- 'ios/**'

jobs:
build-ios:
runs-on: macos-latest
strategy:
matrix:
configuration: [Debug, Release]

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

- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Install CocoaPods
run: |
cd ios/RootStream
pod install

- name: Build iOS App (${{ matrix.configuration }})
run: |
cd ios/RootStream
xcodebuild \
-workspace RootStream.xcworkspace \
-scheme RootStream \
-configuration ${{ matrix.configuration }} \
-destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest' \
clean build \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO

- name: Run Unit Tests
run: |
cd ios/RootStream
xcodebuild test \
-workspace RootStream.xcworkspace \
-scheme RootStream \
-destination 'platform=iOS Simulator,name=iPhone 15 Pro,OS=latest' \
CODE_SIGN_IDENTITY="" \
CODE_SIGNING_REQUIRED=NO

- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: RootStream-iOS-${{ matrix.configuration }}
path: |
ios/RootStream/build/**/*.app
ios/RootStream/build/**/*.dSYM
if-no-files-found: warn

code-quality-ios:
runs-on: macos-latest

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

- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable

- name: Install SwiftLint
run: brew install swiftlint

- name: Run SwiftLint
run: |
cd ios/RootStream
swiftlint lint --reporter github-actions-logging
continue-on-error: true

- name: Check for TODOs and FIXMEs
run: |
echo "=== TODOs and FIXMEs in iOS code ==="
grep -rn "TODO\|FIXME" ios/ || echo "None found"
19 changes: 19 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,22 @@ tools/rstr-player
_codeql_build_dir/
_codeql_detected_source_root
_codeql_build_dir/

# iOS
ios/RootStream/Pods/
ios/RootStream/*.xcworkspace
ios/RootStream/.DS_Store
ios/RootStream/build/
ios/RootStream/DerivedData/
*.xcuserstate
*.xcuserdatad
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
xcuserdata/
*.moved-aside
*.hmap
*.ipa
*.dSYM.zip
*.dSYM
Loading
Loading