mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-03 03:27:10 +00:00
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.
This commit is contained in:
1 parent
de36939d67
commit
71442bb85a
2 files changed
+112
No files matched your search
@@ -0,0 +1,31 @@
|
||||
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
|
||||
Reference in new issue
Block a user