调整: 精简示例入口并默认启用缓存 #11
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 | |
| - master | |
| jobs: | |
| test: | |
| name: Swift Test | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Run tests | |
| run: swift test | |
| ios-build: | |
| name: iOS Build | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Build package for iOS | |
| run: | | |
| xcodebuild \ | |
| -scheme AlloyPlayer \ | |
| -destination 'generic/platform=iOS' \ | |
| -derivedDataPath .build/xcodebuild \ | |
| build | |
| - name: Build demo for iOS Simulator | |
| run: | | |
| xcodebuild \ | |
| -project Example/AlloyPlayerDemo.xcodeproj \ | |
| -scheme AlloyPlayerDemo \ | |
| -destination 'generic/platform=iOS Simulator' \ | |
| -derivedDataPath .build/example-xcodebuild \ | |
| CODE_SIGNING_ALLOWED=NO \ | |
| build |