Skip to content

Updated Unit to GridUnit to fix build issues in GARS and MGRS. It was… #31

Updated Unit to GridUnit to fix build issues in GARS and MGRS. It was…

Updated Unit to GridUnit to fix build issues in GARS and MGRS. It was… #31

Workflow file for this run

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')
latest_iphone=$(echo "$iphone_names" | sort | tail -n 1)
echo "latest_iphone: $latest_iphone"
xcodebuild build -scheme Grid -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')
latest_iphone=$(echo "$iphone_names" | sort | tail -n 1)
echo "latest_iphone: $latest_iphone"
xcodebuild test -scheme Grid -destination "platform=iOS Simulator,OS=latest,name=$latest_iphone"