mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 11:07:10 +00:00
folio-app holds the per-platform toolchain and app build, so a caller guards one step instead of eight. folio-simulator boots the simulator, installs folio and leaves the app stopped.
32 lines
877 B
YAML
32 lines
877 B
YAML
name: folio on a simulator
|
|
description: Boot an iOS simulator, install folio on it, and leave the app stopped.
|
|
|
|
inputs:
|
|
device:
|
|
description: simulator device name
|
|
default: iPhone 16 Pro
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Boot a simulator
|
|
shell: bash
|
|
run: |
|
|
xcrun simctl boot "$IOS_DEVICE" || true
|
|
xcrun simctl bootstatus "$IOS_DEVICE" -b
|
|
env:
|
|
IOS_DEVICE: ${{ inputs.device }}
|
|
|
|
- name: Build and install folio
|
|
shell: bash
|
|
working-directory: examples/folio
|
|
run: just ios
|
|
env:
|
|
IOS_DEVICE: ${{ inputs.device }}
|
|
|
|
# `just ios` leaves the app running, and the run's first act is to clear
|
|
# its state. Stopping it here means the run always opens the same way.
|
|
- name: Stop the app before the run
|
|
shell: bash
|
|
run: xcrun simctl terminate booted app.folio || true
|