|
| 1 | +name: WaterfallGridSample |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + pull_request: |
| 6 | + |
| 7 | +jobs: |
| 8 | + build: |
| 9 | + name: Build and Test |
| 10 | + runs-on: macos-14 |
| 11 | + |
| 12 | + steps: |
| 13 | + - uses: actions/checkout@v4 |
| 14 | + |
| 15 | + - name: List available Xcode versions |
| 16 | + run: ls /Applications | grep Xcode |
| 17 | + |
| 18 | + - name: Set up Xcode version |
| 19 | + run: sudo xcode-select -s /Applications/Xcode_15.4.app/Contents/Developer |
| 20 | + |
| 21 | + - name: Show current version of Xcode |
| 22 | + run: xcodebuild -version |
| 23 | + |
| 24 | + - name: Show Xcode embedded SDKs |
| 25 | + run: xcodebuild -showsdks |
| 26 | + |
| 27 | + - name: Show buildable schemes |
| 28 | + run: xcodebuild -list |
| 29 | + |
| 30 | + - name: Show eligible build destinations |
| 31 | + run: xcodebuild -showdestinations -scheme WaterfallGrid |
| 32 | + |
| 33 | + - name: Install Bundler |
| 34 | + run: gem install bundler |
| 35 | + |
| 36 | + - name: Install xcpretty |
| 37 | + run: gem install xcpretty |
| 38 | + |
| 39 | + - name: Build and run tests (iOS) |
| 40 | + run: xcodebuild test -scheme WaterfallGrid -destination "platform=iOS Simulator,OS=17.5,name=iPhone 15 Pro" | xcpretty |
| 41 | + |
| 42 | + - name: Build (macOS) |
| 43 | + run: xcodebuild build -scheme WaterfallGrid -destination "platform=macOS,arch=arm64e,name=My Mac" | xcpretty |
| 44 | + |
| 45 | + - name: Build (Mac Catalyst) |
| 46 | + run: xcodebuild build -scheme WaterfallGrid -destination "platform=macOS,arch=arm64e,variant=Mac Catalyst,name=My Mac" | xcpretty |
| 47 | + |
| 48 | + - name: Build (tvOS) |
| 49 | + run: xcodebuild build -scheme WaterfallGrid -destination "platform=tvOS Simulator,OS=17.5,name=Apple TV" | xcpretty |
| 50 | + |
| 51 | + - name: Build (watchOS) |
| 52 | + run: xcodebuild build -scheme WaterfallGrid -destination "platform=watchOS Simulator,OS=10.5,name=Apple Watch Ultra 2 (49mm)" | xcpretty |
0 commit comments