Update main.yml #401
This file contains 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: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
schedule: | |
- cron: "30 5 * * *" | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_16.0.app | |
jobs: | |
build: | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Select Xcode 16 | |
run: sudo xcode-select -s /Applications/Xcode_16.0.app | |
- name: Install visionOS | |
run: set -o pipefail && sudo xcodebuild -runFirstLaunch && sudo xcrun simctl list && sudo xcodebuild -downloadPlatform visionOS && sudo xcodebuild -runFirstLaunch | xcpretty | |
- name: Build macOS | |
run: set -o pipefail && xcodebuild -skipMacroValidation -scheme SwiftyCreatives build -destination "generic/platform=macOS" | xcpretty | |
- name: Build Mac Catalyst | |
run: set -o pipefail && xcodebuild -skipMacroValidation -scheme SwiftyCreatives build -destination "generic/platform=macOS,variant=Mac Catalyst" | xcpretty | |
- name: Build iOS | |
run: set -o pipefail && xcodebuild -skipMacroValidation -scheme SwiftyCreatives build -destination "generic/platform=iOS" | xcpretty | |
- name: Build iOS Simulator | |
run: set -o pipefail && xcodebuild -skipMacroValidation -scheme SwiftyCreatives build -destination "generic/platform=iOS Simulator" | xcpretty | |
- name: Build visionOS | |
run: set -o pipefail && xcodebuild -skipMacroValidation -scheme SwiftyCreatives build -destination "generic/platform=visionOS" | xcpretty | |
- name: Build visionOS Simulator | |
run: set -o pipefail && xcodebuild -skipMacroValidation -scheme SwiftyCreatives build -destination "generic/platform=visionOS Simulator" | xcpretty | |
- name: Build tvOS | |
run: set -o pipefail && xcodebuild -skipMacroValidation -scheme SwiftyCreatives build -destination "generic/platform=tvOS" | xcpretty | |
- name: Build tvOS Simulator | |
run: set -o pipefail && xcodebuild -skipMacroValidation -scheme SwiftyCreatives build -destination "generic/platform=tvOS Simulator" | xcpretty | |
test: | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Select Xcode 16 | |
run: sudo xcode-select -s /Applications/Xcode_16.0.app | |
- name: Install visionOS | |
run: set -o pipefail && sudo xcodebuild -runFirstLaunch && sudo xcrun simctl list && sudo xcodebuild -downloadPlatform visionOS && sudo xcodebuild -runFirstLaunch | xcpretty | |
- name: Test macOS | |
run: set -o pipefail && xcodebuild -skipMacroValidation -scheme SwiftyCreatives test -destination "platform=macOS" | xcpretty | |
- name: Test Mac Catalyst | |
run: set -o pipefail && xcodebuild -skipMacroValidation -scheme SwiftyCreatives test -destination "platform=macOS,variant=Mac Catalyst" | xcpretty | |
- name: Test iOS Simulator | |
run: set -o pipefail && xcodebuild -skipMacroValidation -scheme SwiftyCreatives test -destination "platform=iOS Simulator,name:iPhone 16 Pro Max" | xcpretty | |
- name: Test visionOS Simulator | |
run: set -o pipefail && xcodebuild -skipMacroValidation -scheme SwiftyCreatives test -destination "platform=visionOS Simulator,name:Apple Vision Pro" | xcpretty | |
- name: Test tvOS Simulator | |
run: set -o pipefail && xcodebuild -skipMacroValidation -scheme SwiftyCreatives test -destination "platform=tvOS Simulator,Apple TV 4K (3rd generation) (at 1080p)" | xcpretty | |
build-examples: | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Select Xcode 16 | |
run: sudo xcode-select -s /Applications/Xcode_16.0.app | |
- name: Install visionOS | |
run: set -o pipefail && sudo xcodebuild -runFirstLaunch && sudo xcrun simctl list && sudo xcodebuild -downloadPlatform visionOS && sudo xcodebuild -runFirstLaunch | xcpretty | |
- name: Build macOS Example | |
run: cd Examples/ExampleMacOSApp && set -o pipefail && xcodebuild -skipMacroValidation -scheme ExampleMacOSApp build -destination "platform=macOS" | xcpretty | |
- name: Build iOS Example | |
run: cd Examples/ExampleiOSApp && set -o pipefail && xcodebuild -skipMacroValidation -scheme ExampleiOSApp build -destination "platform=iOS Simulator,name=iPhone 15 Pro" | xcpretty | |
- name: Build visionOS Example | |
run: cd Examples/ExampleVisionOS && set -o pipefail && xcodebuild -skipMacroValidation -scheme ExampleVisionOS build -destination "platform=visionOS Simulator,name=Apple Vision Pro" | xcpretty |