@@ -28,7 +28,7 @@ concurrency:
28
28
29
29
env :
30
30
CHIP_NO_LOG_TIMESTAMPS : true
31
-
31
+
32
32
jobs :
33
33
test_suites_chip_tool_darwin :
34
34
name : Test Suites - Darwin
38
38
build_variant : [no-ble-asan-clang]
39
39
env :
40
40
BUILD_VARIANT : ${{matrix.build_variant}}
41
+
42
+ # We can't use the pigweed clang to build the Darwin framework once we start using
43
+ # Swift, because it does not handle CLANG_ENABLE_MODULES correctly.
44
+ #
45
+ # But the Xcode clang does not handle LSan correctly. Since we can't easily apply
46
+ # LSAN_OPTIONS to just everything except darwin-framework-tool, instead disable asan for
47
+ # it.
48
+ BUILD_VARIANT_FRAMEWORK_TOOL : no-ble
41
49
LSAN_OPTIONS : detect_leaks=1 malloc_context_size=40 suppressions=scripts/tests/chiptest/lsan-mac-suppressions.txt
42
50
43
51
if : github.actor != 'restyled-io[bot]'
83
91
run : |
84
92
./scripts/run_in_build_env.sh \
85
93
"./scripts/build/build_examples.py \
86
- --target darwin-x64-darwin-framework-tool-${BUILD_VARIANT } \
94
+ --target darwin-x64-darwin-framework-tool-${BUILD_VARIANT_FRAMEWORK_TOOL } \
87
95
--target darwin-x64-all-clusters-${BUILD_VARIANT} \
88
96
--target darwin-x64-lock-${BUILD_VARIANT} \
89
97
--target darwin-x64-ota-provider-${BUILD_VARIANT} \
97
105
run : |
98
106
./scripts/run_in_build_env.sh \
99
107
"./scripts/tests/run_test_suite.py \
100
- --chip-tool ./out/darwin-x64-darwin-framework-tool-${BUILD_VARIANT }/darwin-framework-tool \
108
+ --chip-tool ./out/darwin-x64-darwin-framework-tool-${BUILD_VARIANT_FRAMEWORK_TOOL }/darwin-framework-tool \
101
109
--target-skip-glob '{TestAccessControlConstraints}' \
102
110
run \
103
111
--iterations 1 \
@@ -114,7 +122,7 @@ jobs:
114
122
./scripts/run_in_build_env.sh \
115
123
"./scripts/tests/run_darwin_framework_ota_test.py \
116
124
run \
117
- --darwin-framework-tool ./out/darwin-x64-darwin-framework-tool-${BUILD_VARIANT }/darwin-framework-tool \
125
+ --darwin-framework-tool ./out/darwin-x64-darwin-framework-tool-${BUILD_VARIANT_FRAMEWORK_TOOL }/darwin-framework-tool \
118
126
--ota-requestor-app ./out/darwin-x64-ota-requestor-${BUILD_VARIANT}/chip-ota-requestor-app \
119
127
--ota-data-file /tmp/rawImage \
120
128
--ota-image-file /tmp/otaImage \
@@ -139,8 +147,8 @@ jobs:
139
147
uses : actions/upload-artifact@v3
140
148
if : ${{ failure() && !env.ACT }}
141
149
with :
142
- name : framework-build-log-darwin-${{ matrix.build_variant }}
143
- path : out/darwin-x64-darwin-framework-tool-${{ matrix.build_variant }}/darwin_framework_build.log
150
+ name : framework-build-log-darwin-${{BUILD_VARIANT_FRAMEWORK_TOOL }}
151
+ path : out/darwin-x64-darwin-framework-tool-${{BUILD_VARIANT_FRAMEWORK_TOOL }}/darwin_framework_build.log
144
152
- name : Uploading objdir for debugging
145
153
uses : actions/upload-artifact@v3
146
154
if : ${{ failure() && !env.ACT }}
0 commit comments