Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
88 lines (88 loc) · 3.13 KB
/
Copy pathaction.yml
File metadata and controls
88 lines (88 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: 'Launch iOS Simulator'
description: 'Launch an iOS Simulator (and shut it down once the job completes)'
branding:
icon: smartphone
color: gray-dark
inputs:
model:
description: "Simulator device model name (e.g. 'iPhone 16')"
required: false
os:
description: "OS type (supported: 'iOS', 'watchOS' and 'tvOS')"
required: false
os_version:
description: "OS version requirement in semver format (e.g. '^18.0')"
required: false
udid:
description: >
Specific UDID of the device to start. If UDID is specified along with OS
and/or model, the action fails if the device with this UDID does not match
specified constraints
required: false
erase_before_boot:
description: Whether the Simulator data should be erased before booting
required: true
default: 'true'
wait_for_boot:
description: >
Whether the action must wait for the Simulator to finish booting requested
image
required: false
default: 'false'
boot_timeout_seconds:
description: >
Maximum number of seconds to wait for the Simulator to finish booting. Use
0 to disable the timeout.
required: false
default: '360'
boot_retries:
description: >
Number of times to retry booting when waiting for the Simulator to finish
booting fails.
required: false
default: '3'
settle_timeout_seconds:
description: >
Maximum number of seconds to wait, after boot, for the Simulator's
background CPU usage (daemons spawned by launchd_sim) to settle down
before continuing. Leave unset (default) to skip this check entirely,
preserving prior behavior. Set to 0 to skip it explicitly. If the
Simulator hasn't settled within this time, a warning is logged and the
action continues without failing the job.
required: false
default: ''
settle_check_interval_seconds:
description: >
Number of seconds between checks of the Simulator's background CPU
usage. Only relevant when settle_timeout_seconds is set to a positive
value.
required: false
default: '2'
settle_cpu_threshold_percent:
description: >
Aggregate %CPU (summed across all direct children of launchd_sim)
below which the Simulator is considered settled. Only relevant when
settle_timeout_seconds is set to a positive value.
required: false
default: '20'
settle_consecutive_samples:
description: >
Number of consecutive checks below settle_cpu_threshold_percent
required before the Simulator is considered settled. Only relevant
when settle_timeout_seconds is set to a positive value.
required: false
default: '3'
shutdown_after_job:
description: >
Whether the Simulator should be shut down after the job has finished. This
is mostly relevant when e.g. running on self-hosted actions where the host
OS and therefore Simulator will continue running after the job is finished
required: true
default: 'true'
outputs:
udid:
description: 'UDID of the launched device, for use with e.g. xcrun command'
runs:
using: 'node24'
main: 'dist/index.js'
post: 'dist/index.js'