Merge pull request #4 from ondeinference/feature/apple-platforms-mvp #19
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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - feature/** | |
| jobs: | |
| content-validation: | |
| name: Validate bundled content | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Validate bundled content | |
| run: python3 Scripts/validate_content.py | |
| snapshot-tests: | |
| name: Snapshot tests | |
| runs-on: macos-26 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install XcodeGen | |
| run: brew install xcodegen | |
| - name: Generate project | |
| run: xcodegen generate | |
| - name: Resolve Swift packages | |
| run: xcodebuild -project Klepon.xcodeproj -scheme Klepon -resolvePackageDependencies | |
| - name: Run snapshot tests | |
| run: | | |
| xcodebuild test \ | |
| -project Klepon.xcodeproj \ | |
| -scheme Klepon \ | |
| -destination 'platform=iOS Simulator,OS=26.2,name=iPhone 17' \ | |
| -only-testing:KleponSnapshotTests \ | |
| CODE_SIGNING_ALLOWED=NO | |
| macos-build: | |
| name: macOS app build | |
| runs-on: macos-26 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install XcodeGen | |
| run: brew install xcodegen | |
| - name: Generate project | |
| run: xcodegen generate | |
| - name: Resolve Swift packages | |
| run: xcodebuild -project Klepon.xcodeproj -scheme 'Klepon Mac' -resolvePackageDependencies | |
| - name: Build macOS app | |
| run: | | |
| xcodebuild build \ | |
| -project Klepon.xcodeproj \ | |
| -scheme 'Klepon Mac' \ | |
| -destination 'platform=macOS' \ | |
| CODE_SIGNING_ALLOWED=NO | |
| tvos-build: | |
| name: tvOS app build | |
| runs-on: macos-26 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install XcodeGen | |
| run: brew install xcodegen | |
| - name: Generate project | |
| run: xcodegen generate | |
| - name: Resolve Swift packages | |
| run: xcodebuild -project Klepon.xcodeproj -scheme 'Klepon TV' -resolvePackageDependencies | |
| - name: Build tvOS app | |
| run: | | |
| xcodebuild build \ | |
| -project Klepon.xcodeproj \ | |
| -scheme 'Klepon TV' \ | |
| -destination 'generic/platform=tvOS Simulator' \ | |
| CODE_SIGNING_ALLOWED=NO | |
| visionos-build: | |
| name: visionOS app build | |
| runs-on: macos-26 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install XcodeGen | |
| run: brew install xcodegen | |
| - name: Generate project | |
| run: xcodegen generate | |
| - name: Resolve Swift packages | |
| run: xcodebuild -project Klepon.xcodeproj -scheme 'Klepon Vision' -resolvePackageDependencies | |
| - name: Build visionOS app | |
| run: | | |
| xcodebuild build \ | |
| -project Klepon.xcodeproj \ | |
| -scheme 'Klepon Vision' \ | |
| -destination 'generic/platform=visionOS Simulator' \ | |
| CODE_SIGNING_ALLOWED=NO | |
| watchos-build: | |
| name: watchOS app build | |
| runs-on: macos-26 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install XcodeGen | |
| run: brew install xcodegen | |
| - name: Generate project | |
| run: xcodegen generate | |
| - name: Resolve Swift packages | |
| run: xcodebuild -project Klepon.xcodeproj -scheme 'Klepon Watch' -resolvePackageDependencies | |
| - name: Build watchOS app | |
| run: | | |
| xcodebuild build \ | |
| -project Klepon.xcodeproj \ | |
| -scheme 'Klepon Watch' \ | |
| -destination 'generic/platform=watchOS Simulator' \ | |
| CODE_SIGNING_ALLOWED=NO |