refactor: second phase of FirebaseUI work. #750
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Sample | |
| on: | |
| push: | |
| branches: [ main ] | |
| paths: | |
| - '.github/workflows/sample.yml' | |
| - 'FirebaseSwiftUI/**' | |
| - 'Firebase*UI/**' | |
| - 'samples/**' | |
| - 'Package.swift' | |
| - '*.podspec' | |
| pull_request: | |
| branches: [ main ] | |
| paths: | |
| - '.github/workflows/sample.yml' | |
| - 'FirebaseSwiftUI/**' | |
| - 'Firebase*UI/**' | |
| - 'samples/**' | |
| - 'Package.swift' | |
| - '*.podspec' | |
| workflow_dispatch: | |
| jobs: | |
| swiftui: | |
| name: SwiftUI Sample build | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@main | |
| - name: Build SwiftUI Sample | |
| run: | | |
| cd samples/swiftui/FirebaseSwiftUISample | |
| xcodebuild \ | |
| -project FirebaseSwiftUISample.xcodeproj \ | |
| -scheme FirebaseSwiftUISample \ | |
| -sdk iphonesimulator \ | |
| -destination 'platform=iOS Simulator,OS=latest,name=iPhone 16 Pro' \ | |
| clean build \ | |
| ONLY_ACTIVE_ARCH=YES | |
| swift: | |
| name: Swift UIKit Sample build | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@main | |
| - name: Setup | |
| run: | | |
| cp samples/GoogleService-Info-dummy.plist samples/swift/GoogleService-Info.plist | |
| cd samples/swift | |
| gem install bundler | |
| bundle install | |
| gem install xcpretty | |
| bundle exec pod install --repo-update | |
| - name: Build | |
| run: | | |
| cd samples/swift | |
| xcodebuild \ | |
| -workspace FirebaseUI-demo-swift.xcworkspace \ | |
| -scheme FirebaseUI-demo-swift \ | |
| -sdk iphonesimulator \ | |
| -destination 'platform=iOS Simulator,OS=latest,name=iPhone 16 Pro' \ | |
| clean build test \ | |
| ONLY_ACTIVE_ARCH=YES | xcpretty | |
| objc: | |
| name: ObjC Sample build | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@main | |
| - name: Setup | |
| run: | | |
| cp samples/GoogleService-Info-dummy.plist samples/objc/GoogleService-Info.plist | |
| cd samples/objc | |
| gem install bundler | |
| bundle install | |
| gem install xcpretty | |
| bundle exec pod install --repo-update | |
| - name: Build | |
| run: | | |
| cd samples/objc | |
| xcodebuild \ | |
| -workspace FirebaseUI-demo-objc.xcworkspace \ | |
| -scheme FirebaseUI-demo-objc \ | |
| -sdk iphonesimulator \ | |
| -destination 'platform=iOS Simulator,OS=latest,name=iPhone 16 Pro' \ | |
| clean build \ | |
| ONLY_ACTIVE_ARCH=YES | xcpretty |