Files
sanderling/.github/actions/folio-simulator/action.yml
T
pj 71442bb85a ci(examples): add the folio setup actions
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.
2026-08-16 01:22:25 +05:30

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