Skip to content

Improvements to Makefile for running simulator tests #3

Improvements to Makefile for running simulator tests

Improvements to Makefile for running simulator tests #3

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
fmt:
name: Check simple example
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
target: x86_64-apple-ios
- uses: taiki-e/install-action@v2
with:
tool: [email protected]
- name: boot iOS simulator
run: |
xcrun simctl boot $(xcrun simctl list devices 'iOS' --json | jq '.devices | with_entries( select(.key|contains("iOS"))) | .[] | [ .[].name ] | map( select(contains("iPhone")) ) | sort | .[0] ' | jq -r)
- name: run accelerometer example
run: cargo run --example accelerometer --target x86_64-apple-ios