@@ -16,12 +16,17 @@ name: Darwin
16
16
17
17
on :
18
18
push :
19
+ branches-ignore :
20
+ - " dependabot/**"
19
21
pull_request :
20
22
merge_group :
21
23
workflow_dispatch :
22
24
23
25
concurrency :
24
- 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 }}
25
30
cancel-in-progress : true
26
31
27
32
env :
@@ -35,49 +40,47 @@ jobs:
35
40
strategy :
36
41
matrix :
37
42
options : # We don't need a full matrix
38
- - flavor : macos-release-availability
39
- arguments : -sdk macosx -configuration Release WARNING_CFLAGS='${inherited} -Werror -Wconversion -Wno-unguarded-availability-new'
43
+ - flavor : macos-release
44
+ arguments : -sdk macosx -configuration Release
40
45
- flavor : ios-release
41
- arguments : -sdk iphoneos -configuration Release WARNING_CFLAGS='${inherited} -Werror -Wconversion' GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1'
42
- - flavor : ios-debug
43
- arguments : -sdk iphoneos -configuration Debug WARNING_CFLAGS='${inherited} -Werror -Wconversion' GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1'
46
+ arguments : -sdk iphoneos -configuration Release
44
47
- flavor : tvos-debug
45
- arguments : -sdk appletvos -configuration Debug WARNING_CFLAGS='${inherited} -Werror -Wconversion' GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1'
48
+ arguments : -sdk appletvos -configuration Debug
46
49
- flavor : watchos-debug
47
- arguments : -sdk watchos -configuration Debug WARNING_CFLAGS='${inherited} -Werror -Wconversion' GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1'
50
+ arguments : -sdk watchos -configuration Debug
48
51
steps :
49
52
- name : Checkout
50
53
uses : actions/checkout@v4
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
@@ -113,7 +117,7 @@ jobs:
113
117
114
118
# Disable BLE (CHIP_IS_BLE=NO) because the app does not have the permission to use it and that may crash the CI.
115
119
xcodebuild test -target "Matter" -scheme "Matter Framework Tests" -sdk macosx ${{ matrix.options.arguments }} \
116
- OTHER_CFLAGS='${inherited} -Werror -Wconversion' CHIP_IS_BLE=NO GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1 ${{ matrix.options.defines }}' \
120
+ CHIP_IS_BLE=NO GCC_PREPROCESSOR_DEFINITIONS='${inherited} ${{ matrix.options.defines }}' \
117
121
> >(tee /tmp/darwin/framework-tests/darwin-tests.log) 2> >(tee /tmp/darwin/framework-tests/darwin-tests-err.log >&2)
118
122
- name : Collect crash logs
119
123
if : failure() && !env.ACT
@@ -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