@@ -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,33 +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
78
- - flavor : asan-global-storage
79
- arguments : -enableAddressSanitizer YES -enableUndefinedBehaviorSanitizer YES
80
- defines : MTR_PER_CONTROLLER_STORAGE_ENABLED=0
81
+ arguments :
82
+ -enableAddressSanitizer YES
83
+ -enableUndefinedBehaviorSanitizer YES
81
84
- flavor : tsan
82
85
arguments : -enableThreadSanitizer YES
83
86
steps :
86
89
- name : Checkout submodules & Bootstrap
87
90
uses : ./.github/actions/checkout-submodules-and-bootstrap
88
91
with :
89
- platform : darwin
90
- bootstrap-log-name : bootstrap-logs-framework-${{ matrix.options.flavor }}
92
+ platform : darwin
93
+ bootstrap-log-name :
94
+ bootstrap-logs-framework-${{ matrix.options.flavor }}
91
95
- name : Build example All Clusters Server
92
96
run : |
93
97
scripts/examples/gn_build_example.sh examples/all-clusters-app/linux out/debug chip_config_network_layer_ble=false
@@ -127,19 +131,3 @@ jobs:
127
131
name : darwin-framework-test-logs-${{ matrix.options.flavor }}
128
132
path : /tmp/darwin/framework-tests
129
133
retention-days : 5
130
-
131
- tv-casting-bridge :
132
- name : Build TV Casting Bridge example
133
- if : github.actor != 'restyled-io[bot]'
134
- needs : [ framework ] # serialize to avoid running to many parallel macos runners
135
- runs-on : macos-13
136
- steps :
137
- - name : Checkout
138
- uses : actions/checkout@v4
139
- - name : Checkout submodules & Bootstrap
140
- uses : ./.github/actions/checkout-submodules-and-bootstrap
141
- with :
142
- platform : darwin
143
- - name : Build
144
- working-directory : examples/tv-casting-app/darwin/MatterTvCastingBridge
145
- run : xcodebuild -target "MatterTvCastingBridge" -sdk iphoneos
0 commit comments