@@ -17,13 +17,16 @@ name: Darwin
17
17
on :
18
18
push :
19
19
branches-ignore :
20
- - ' dependabot/**'
20
+ - " dependabot/**"
21
21
pull_request :
22
22
merge_group :
23
23
workflow_dispatch :
24
24
25
25
concurrency :
26
- group : ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
26
+ group :
27
+ ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name ==
28
+ ' pull_request' && github.event.number) || (github.event_name ==
29
+ ' workflow_dispatch' && github.run_number) || github.sha }}
27
30
cancel-in-progress : true
28
31
29
32
env :
@@ -51,30 +54,33 @@ jobs:
51
54
- name : Checkout submodules & Bootstrap
52
55
uses : ./.github/actions/checkout-submodules-and-bootstrap
53
56
with :
54
- platform : darwin
55
- bootstrap-log-name : bootstrap-logs-framework-${{ matrix.options.flavor }}
57
+ platform : darwin
58
+ bootstrap-log-name :
59
+ bootstrap-logs-framework-${{ matrix.options.flavor }}
56
60
- name : Block zap-cli from being used
57
61
env :
58
- PW_ENVSETUP_NO_BANNER : 1
62
+ PW_ENVSETUP_NO_BANNER : 1
59
63
run : |
60
- # Framework builds are NOT expected to require zap-cli
61
- scripts/run_in_build_env.sh 'rm -- "$(which zap-cli)"'
62
- # run_in_build_env.sh is used to ensure PATH is set to something that would otherwise find zap-cli
63
- scripts/run_in_build_env.sh '(zap-cli --version && exit 1) || exit 0'
64
+ # Framework builds are NOT expected to require zap-cli
65
+ scripts/run_in_build_env.sh 'rm -- "$(which zap-cli)"'
66
+ # run_in_build_env.sh is used to ensure PATH is set to something that would otherwise find zap-cli
67
+ scripts/run_in_build_env.sh '(zap-cli --version && exit 1) || exit 0'
64
68
- name : Build
65
69
working-directory : src/darwin/Framework
66
70
run : xcodebuild -target "Matter" ${{ matrix.options.arguments }}
67
71
68
72
tests :
69
73
name : Run framework tests
70
74
if : github.actor != 'restyled-io[bot]'
71
- needs : [ framework ] # serialize to avoid running to many parallel macos runners
75
+ needs : [framework] # serialize to avoid running to many parallel macos runners
72
76
runs-on : macos-13
73
77
strategy :
74
78
matrix :
75
79
options : # We don't need a full matrix
76
80
- flavor : asan
77
- arguments : -enableAddressSanitizer YES -enableUndefinedBehaviorSanitizer YES
81
+ arguments :
82
+ -enableAddressSanitizer YES
83
+ -enableUndefinedBehaviorSanitizer YES
78
84
- flavor : tsan
79
85
arguments : -enableThreadSanitizer YES
80
86
steps :
83
89
- name : Checkout submodules & Bootstrap
84
90
uses : ./.github/actions/checkout-submodules-and-bootstrap
85
91
with :
86
- platform : darwin
87
- bootstrap-log-name : bootstrap-logs-framework-${{ matrix.options.flavor }}
92
+ platform : darwin
93
+ bootstrap-log-name :
94
+ bootstrap-logs-framework-${{ matrix.options.flavor }}
88
95
- name : Build example All Clusters Server
89
96
run : |
90
97
scripts/examples/gn_build_example.sh examples/all-clusters-app/linux out/debug chip_config_network_layer_ble=false
@@ -124,19 +131,3 @@ jobs:
124
131
name : darwin-framework-test-logs-${{ matrix.options.flavor }}
125
132
path : /tmp/darwin/framework-tests
126
133
retention-days : 5
127
-
128
- tv-casting-bridge :
129
- name : Build TV Casting Bridge example
130
- if : github.actor != 'restyled-io[bot]'
131
- needs : [ framework ] # serialize to avoid running to many parallel macos runners
132
- runs-on : macos-13
133
- steps :
134
- - name : Checkout
135
- uses : actions/checkout@v4
136
- - name : Checkout submodules & Bootstrap
137
- uses : ./.github/actions/checkout-submodules-and-bootstrap
138
- with :
139
- platform : darwin
140
- - name : Build
141
- working-directory : examples/tv-casting-app/darwin/MatterTvCastingBridge
142
- run : xcodebuild -target "MatterTvCastingBridge" -sdk iphoneos
0 commit comments