Merge pull request #3 from ondeinference/feature/macos #13
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: | |
| 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 |