49
49
- name : Validate zap-cli is NOT available
50
50
# run_in_build_env.sh is used to ensure PATH is set to something that would otherwise find zap-cli
51
51
run : scripts/run_in_build_env.sh '(zap-cli --version && exit 1) || exit 0'
52
+ - name : Run watchOS Build Debug
53
+ working-directory : src/darwin/Framework
54
+ # Disable availability annotations, since we are not building a system
55
+ # Matter.framework.
56
+ run : xcodebuild -target "Matter" -sdk watchos -configuration Debug GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1'
52
57
- name : Run iOS Build Debug
53
58
working-directory : src/darwin/Framework
54
59
# Disable availability annotations, since we are not building a system
@@ -103,8 +108,7 @@ jobs:
103
108
# target versions instead?
104
109
run : |
105
110
mkdir -p /tmp/darwin/framework-tests
106
- echo "This is a simple log" > /tmp/darwin/framework-tests/end_user_support_log.txt
107
- ../../../out/debug/chip-all-clusters-app --interface-id -1 --end_user_support_log /tmp/darwin/framework-tests/end_user_support_log.txt > >(tee /tmp/darwin/framework-tests/all-cluster-app.log) 2> >(tee /tmp/darwin/framework-tests/all-cluster-app-err.log >&2) &
111
+ ../../../out/debug/chip-all-clusters-app --interface-id -1 > >(tee /tmp/darwin/framework-tests/all-cluster-app.log) 2> >(tee /tmp/darwin/framework-tests/all-cluster-app-err.log >&2) &
108
112
../../../out/debug/chip-all-clusters-app --interface-id -1 --dac_provider ../../../credentials/development/commissioner_dut/struct_cd_origin_pid_vid_correct/test_case_vector.json --product-id 32768 --discriminator 3839 --secured-device-port 5539 --KVS /tmp/chip-all-clusters-app-kvs2 > >(tee /tmp/darwin/framework-tests/all-cluster-app-origin-vid.log) 2> >(tee /tmp/darwin/framework-tests/all-cluster-app-origin-vid-err.log >&2) &
109
113
# Disable BLE (CHIP_IS_BLE=NO) because the app does not have the permission to use it and that may crash the CI.
110
114
@@ -120,13 +124,10 @@ jobs:
120
124
run : |
121
125
xcodebuild -target "MatterTvCastingBridge" -sdk iphoneos
122
126
working-directory : examples/tv-casting-app/darwin/MatterTvCastingBridge
123
- - name : Uploading .ips files in Xcode derived data to debug the failure
124
- uses : actions/upload-artifact@v4
125
- if : ${{ failure() && !env.ACT }}
126
- with :
127
- name : darwin-framework-derived-data
128
- path : ~/Library/Developer/Xcode/DerivedData/**/*.ips
129
- retention-days : 5
127
+ - name : Collect crash logs
128
+ run : |
129
+ mkdir -p /tmp/darwin/framework-tests
130
+ find ~/Library/Developer/Xcode/DerivedData /Library/Logs/DiagnosticReports -name '*.ips' -print0 | xargs -0 -J % cp % /tmp/darwin/framework-tests
130
131
- name : Uploading log files
131
132
uses : actions/upload-artifact@v4
132
133
if : ${{ failure() && !env.ACT }}
0 commit comments