Refactor GitHub Actions workflow for build process #5
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: iOS CI | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Select Xcode | |
| run: sudo xcode-select -switch /Applications/Xcode.app | |
| - name: Build | |
| run: | | |
| xcodebuild clean build \ | |
| -project "Leaf Lens.xcodeproj" \ | |
| -scheme "Leaf Lens" \ | |
| -destination 'generic/platform=iOS Simulator' |