@@ -31,34 +31,34 @@ jobs:
31
31
framework :
32
32
name : Build framework
33
33
if : github.actor != 'restyled-io[bot]'
34
- runs-on : macos-latest
34
+ runs-on : macos-13
35
35
strategy :
36
36
matrix :
37
37
options : # We don't need a full matrix
38
38
- flavor : macos-release-availability
39
- arguments : -sdk macosx -configuration Release OTHER_CFLAGS ='${inherited} -Werror -Wconversion -Wno-unguarded-availability-new'
39
+ arguments : -sdk macosx -configuration Release WARNING_CFLAGS ='${inherited} -Werror -Wconversion -Wno-unguarded-availability-new'
40
40
- flavor : ios-release
41
- arguments : -sdk iphoneos -configuration Release OTHER_CFLAGS ='${inherited} -Werror -Wconversion' GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1'
41
+ arguments : -sdk iphoneos -configuration Release WARNING_CFLAGS ='${inherited} -Werror -Wconversion' GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1'
42
42
- flavor : ios-debug
43
- arguments : -sdk iphoneos -configuration Debug OTHER_CFLAGS ='${inherited} -Werror -Wconversion' GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1'
43
+ arguments : -sdk iphoneos -configuration Debug WARNING_CFLAGS ='${inherited} -Werror -Wconversion' GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1'
44
44
- flavor : tvos-debug
45
- arguments : -sdk appletvos -configuration Debug OTHER_CFLAGS ='${inherited} -Werror -Wconversion' GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1'
45
+ arguments : -sdk appletvos -configuration Debug WARNING_CFLAGS ='${inherited} -Werror -Wconversion' GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1'
46
46
- flavor : watchos-debug
47
- arguments : -sdk watchos -configuration Debug OTHER_CFLAGS ='${inherited} -Werror -Wconversion' GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1'
47
+ arguments : -sdk watchos -configuration Debug WARNING_CFLAGS ='${inherited} -Werror -Wconversion' GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1'
48
48
steps :
49
49
- name : Checkout
50
50
uses : actions/checkout@v4
51
- - name : Setup Environment
52
- run : brew install python@3.9
53
51
- name : Checkout submodules & Bootstrap
54
52
uses : ./.github/actions/checkout-submodules-and-bootstrap
55
53
with :
56
54
platform : darwin
57
55
bootstrap-log-name : bootstrap-logs-framework-${{ matrix.options.flavor }}
58
56
- name : Block zap-cli from being used
57
+ env :
58
+ PW_ENVSETUP_NO_BANNER : 1
59
59
run : |
60
60
# Framework builds are NOT expected to require zap-cli
61
- scripts/run_in_build_env.sh 'D=$(dirname $(which zap-cli)) && mv $D/zap-cli $D/zap-cli.moved '
61
+ scripts/run_in_build_env.sh 'rm -- " $(which zap-cli)" '
62
62
# run_in_build_env.sh is used to ensure PATH is set to something that would otherwise find zap-cli
63
63
scripts/run_in_build_env.sh '(zap-cli --version && exit 1) || exit 0'
64
64
- name : Build
68
68
tests :
69
69
name : Run framework tests
70
70
if : github.actor != 'restyled-io[bot]'
71
- runs-on : macos-latest
71
+ needs : [ framework ] # serialize to avoid running to many parallel macos runners
72
+ runs-on : macos-13
72
73
strategy :
73
74
matrix :
74
75
options : # We don't need a full matrix
82
83
steps :
83
84
- name : Checkout
84
85
uses : actions/checkout@v4
85
- - name : Setup Environment
86
- run : brew install python@3.9
87
86
- name : Checkout submodules & Bootstrap
88
87
uses : ./.github/actions/checkout-submodules-and-bootstrap
89
88
with :
@@ -117,6 +116,7 @@ jobs:
117
116
OTHER_CFLAGS='${inherited} -Werror -Wconversion' CHIP_IS_BLE=NO GCC_PREPROCESSOR_DEFINITIONS='${inherited} MTR_NO_AVAILABILITY=1 ${{ matrix.options.defines }}' \
118
117
> >(tee /tmp/darwin/framework-tests/darwin-tests.log) 2> >(tee /tmp/darwin/framework-tests/darwin-tests-err.log >&2)
119
118
- name : Collect crash logs
119
+ if : failure() && !env.ACT
120
120
run : |
121
121
mkdir -p /tmp/darwin/framework-tests
122
122
find ~/Library/Developer/Xcode/DerivedData /Library/Logs/DiagnosticReports -name '*.ips' -print0 | xargs -0 -J % cp % /tmp/darwin/framework-tests
@@ -131,24 +131,15 @@ jobs:
131
131
tv-casting-bridge :
132
132
name : Build TV Casting Bridge example
133
133
if : github.actor != 'restyled-io[bot]'
134
- runs-on : macos-latest
134
+ needs : [ framework ] # serialize to avoid running to many parallel macos runners
135
+ runs-on : macos-13
135
136
steps :
136
137
- name : Checkout
137
138
uses : actions/checkout@v4
138
- - name : Setup Environment
139
- run : brew install python@3.9
140
139
- name : Checkout submodules & Bootstrap
141
140
uses : ./.github/actions/checkout-submodules-and-bootstrap
142
141
with :
143
142
platform : darwin
144
143
- name : Build
145
144
working-directory : examples/tv-casting-app/darwin/MatterTvCastingBridge
146
145
run : xcodebuild -target "MatterTvCastingBridge" -sdk iphoneos
147
-
148
- darwin :
149
- name : Build Darwin # Matches the previous monolithic build that's marked "required" for PRs
150
- needs : [ framework, tests ]
151
- runs-on : macos-latest
152
- steps :
153
- - name : Done
154
- run : ' true' # nothing to do
0 commit comments