Merge branch 'main' of https://github.com/chicio/ID3TagEditor #484
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: Build iOS | |
| on: | |
| push: | |
| branches: | |
| - '*' | |
| pull_request: | |
| branches: | |
| - main | |
| schedule: | |
| - cron: '0 16 15 * *' | |
| jobs: | |
| build: | |
| name: Build iOS | |
| runs-on: macos-15 | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Select iOS Simulator | |
| run: | | |
| SIMULATOR_ID=$(xcrun simctl list devices available | grep -m1 'iPhone' | awk -F '[()]' '{print $2}') | |
| echo "SIMULATOR_ID=$SIMULATOR_ID" >> $GITHUB_ENV | |
| - name: Build iOS framework | |
| run: | | |
| set -o pipefail && xcodebuild -project ID3TagEditor.xcodeproj -scheme "ID3TagEditor iOS Tests" clean test CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination "id=$SIMULATOR_ID" -skipPackagePluginValidation | xcpretty | |
| - name: Build iOS Demo | |
| run: | | |
| set -o pipefail && xcodebuild -project Demo/Demo.xcodeproj -scheme "Demo iOS" clean build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO -destination "id=$SIMULATOR_ID" -skipPackagePluginValidation | xcpretty | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v1 |