Adds Swift Package Manager Support and removes Cocoapods #33
Workflow file for this run
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 | |
| on: | |
| push: | |
| branches-ignore: | |
| - master | |
| jobs: | |
| build: | |
| runs-on: macOS-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Build | |
| run: | | |
| iphone_names=$(xcrun simctl list devices available --json | jq -r '.devices | to_entries[] | .value[] | select(.name | test("^iPhone [0-9]+")) | .name') | |
| if [ -z "$iphone_names" ]; then echo "Error: No iPhone simulators found."; exit 1; fi | |
| latest_iphone=$(echo "$iphone_names" | sort | tail -n 1) | |
| echo "latest_iphone: $latest_iphone" | |
| xcodebuild build -scheme MGRS -destination "platform=iOS Simulator,OS=latest,name=$latest_iphone" | |
| - name: Test | |
| run: | | |
| iphone_names=$(xcrun simctl list devices available --json | jq -r '.devices | to_entries[] | .value[] | select(.name | test("^iPhone [0-9]+")) | .name') | |
| if [ -z "$iphone_names" ]; then echo "Error: No iPhone simulators found."; exit 1; fi | |
| latest_iphone=$(echo "$iphone_names" | sort | tail -n 1) | |
| echo "latest_iphone: $latest_iphone" | |
| xcodebuild test -scheme MGRS -destination "platform=iOS Simulator,OS=latest,name=$latest_iphone" |