2.0.1 #3
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
| # This workflow will build a Swift project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift | |
| name: Build | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Xcode version | |
| run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer | |
| - name: Show available destinations | |
| run: xcodebuild -scheme Ignition -showdestinations | |
| - name: Build for macOS | |
| run: xcodebuild -scheme Ignition -destination 'platform=macOS' build | |
| - name: Build for Catalyst | |
| run: xcodebuild -scheme Ignition -destination 'platform=macOS,variant=Mac Catalyst' build | |
| - name: Build for iOS | |
| run: xcodebuild -scheme Ignition -destination 'platform=iOS Simulator,name=iPhone 16' build | |
| - name: Build for watchOS | |
| run: xcodebuild -scheme Ignition -destination 'platform=watchOS Simulator,name=Apple Watch Ultra 2 (49mm)' build | |
| - name: Build for tvOS | |
| run: xcodebuild -scheme Ignition -destination 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation)' build | |
| - name: Build for visionOS | |
| run: xcodebuild -scheme Ignition -destination 'platform=visionOS Simulator,name=Apple Vision Pro' build |