feat: stabilize device connectivity and displays #20
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: Apple Tests | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - 'apple/**' | |
| - 'shared/**' | |
| - 'generated/protocol/**' | |
| - '.github/workflows/apple-test.yml' | |
| pull_request: | |
| branches: [master] | |
| paths: | |
| - 'apple/**' | |
| - 'shared/**' | |
| - 'generated/protocol/**' | |
| - '.github/workflows/apple-test.yml' | |
| jobs: | |
| test-macos: | |
| runs-on: macos-15 | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Select Xcode | |
| run: | | |
| XCODE=$(ls -d /Applications/Xcode*.app 2>/dev/null | sort -V | tail -1) | |
| echo "Using: $XCODE" | |
| sudo xcode-select -s "$XCODE/Contents/Developer" | |
| - name: Install XcodeGen | |
| run: brew install xcodegen | |
| - name: Regenerate Xcode project | |
| working-directory: apple | |
| run: xcodegen generate | |
| - name: Build AgentDeck_macOS | |
| run: | | |
| xcodebuild build \ | |
| -project apple/AgentDeck.xcodeproj \ | |
| -scheme AgentDeck_macOS \ | |
| -configuration Debug \ | |
| -destination 'platform=macOS' \ | |
| -derivedDataPath "$RUNNER_TEMP/AgentDeckDerivedData" \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| | xcbeautify --renderer github-actions || exit 1 | |
| - name: Run AgentDeckTests_macOS | |
| run: | | |
| xcodebuild test \ | |
| -project apple/AgentDeck.xcodeproj \ | |
| -scheme AgentDeck_macOS \ | |
| -configuration Debug \ | |
| -destination 'platform=macOS' \ | |
| -derivedDataPath "$RUNNER_TEMP/AgentDeckDerivedData" \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| -resultBundlePath "$RUNNER_TEMP/AgentDeckTests.xcresult" \ | |
| | xcbeautify --renderer github-actions || exit 1 | |
| - name: Upload xcresult on failure | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: AgentDeckTests-xcresult | |
| path: ${{ runner.temp }}/AgentDeckTests.xcresult | |
| build-ios: | |
| runs-on: macos-15 | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Select Xcode | |
| run: | | |
| XCODE=$(ls -d /Applications/Xcode*.app 2>/dev/null | sort -V | tail -1) | |
| sudo xcode-select -s "$XCODE/Contents/Developer" | |
| - name: Install XcodeGen | |
| run: brew install xcodegen | |
| - name: Regenerate Xcode project | |
| working-directory: apple | |
| run: xcodegen generate | |
| - name: Build AgentDeck_iOS (unsigned) | |
| run: | | |
| xcodebuild build \ | |
| -project apple/AgentDeck.xcodeproj \ | |
| -scheme AgentDeck_iOS \ | |
| -configuration Debug \ | |
| -destination 'generic/platform=iOS Simulator' \ | |
| -derivedDataPath "$RUNNER_TEMP/AgentDeckDerivedData" \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| | xcbeautify --renderer github-actions || exit 1 |