Skip to content

Commit 5d6ec00

Browse files
authored
Splitting example and core workflows (#32976)
1 parent 3ddf53d commit 5d6ec00

File tree

2 files changed

+69
-29
lines changed

2 files changed

+69
-29
lines changed

.github/workflows/darwin.yaml

+20-29
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,16 @@ name: Darwin
1717
on:
1818
push:
1919
branches-ignore:
20-
- 'dependabot/**'
20+
- "dependabot/**"
2121
pull_request:
2222
merge_group:
2323
workflow_dispatch:
2424

2525
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 }}
2730
cancel-in-progress: true
2831

2932
env:
@@ -51,30 +54,33 @@ jobs:
5154
- name: Checkout submodules & Bootstrap
5255
uses: ./.github/actions/checkout-submodules-and-bootstrap
5356
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 }}
5660
- name: Block zap-cli from being used
5761
env:
58-
PW_ENVSETUP_NO_BANNER: 1
62+
PW_ENVSETUP_NO_BANNER: 1
5963
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'
6468
- name: Build
6569
working-directory: src/darwin/Framework
6670
run: xcodebuild -target "Matter" ${{ matrix.options.arguments }}
6771

6872
tests:
6973
name: Run framework tests
7074
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
7276
runs-on: macos-13
7377
strategy:
7478
matrix:
7579
options: # We don't need a full matrix
7680
- flavor: asan
77-
arguments: -enableAddressSanitizer YES -enableUndefinedBehaviorSanitizer YES
81+
arguments:
82+
-enableAddressSanitizer YES
83+
-enableUndefinedBehaviorSanitizer YES
7884
- flavor: tsan
7985
arguments: -enableThreadSanitizer YES
8086
steps:
@@ -83,8 +89,9 @@ jobs:
8389
- name: Checkout submodules & Bootstrap
8490
uses: ./.github/actions/checkout-submodules-and-bootstrap
8591
with:
86-
platform: darwin
87-
bootstrap-log-name: bootstrap-logs-framework-${{ matrix.options.flavor }}
92+
platform: darwin
93+
bootstrap-log-name:
94+
bootstrap-logs-framework-${{ matrix.options.flavor }}
8895
- name: Build example All Clusters Server
8996
run: |
9097
scripts/examples/gn_build_example.sh examples/all-clusters-app/linux out/debug chip_config_network_layer_ble=false
@@ -124,19 +131,3 @@ jobs:
124131
name: darwin-framework-test-logs-${{ matrix.options.flavor }}
125132
path: /tmp/darwin/framework-tests
126133
retention-days: 5
127-
128-
tv-casting-bridge:
129-
name: Build TV Casting Bridge example
130-
if: github.actor != 'restyled-io[bot]'
131-
needs: [ framework ] # serialize to avoid running to many parallel macos runners
132-
runs-on: macos-13
133-
steps:
134-
- name: Checkout
135-
uses: actions/checkout@v4
136-
- name: Checkout submodules & Bootstrap
137-
uses: ./.github/actions/checkout-submodules-and-bootstrap
138-
with:
139-
platform: darwin
140-
- name: Build
141-
working-directory: examples/tv-casting-app/darwin/MatterTvCastingBridge
142-
run: xcodebuild -target "MatterTvCastingBridge" -sdk iphoneos
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright (c) 2020-2021 Project CHIP Authors
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
name: TV Casting Example - Darwin
16+
17+
on:
18+
push:
19+
branches-ignore:
20+
- "dependabot/**"
21+
pull_request:
22+
merge_group:
23+
workflow_dispatch:
24+
25+
concurrency:
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 }}
30+
cancel-in-progress: true
31+
32+
env:
33+
CHIP_NO_LOG_TIMESTAMPS: true
34+
35+
jobs:
36+
tv-casting-bridge:
37+
name: Build TV Casting Bridge example
38+
if: github.actor != 'restyled-io[bot]'
39+
runs-on: macos-13
40+
steps:
41+
- name: Checkout
42+
uses: actions/checkout@v4
43+
- name: Checkout submodules & Bootstrap
44+
uses: ./.github/actions/checkout-submodules-and-bootstrap
45+
with:
46+
platform: darwin
47+
- name: Build
48+
working-directory: examples/tv-casting-app/darwin/MatterTvCastingBridge
49+
run: xcodebuild -target "MatterTvCastingBridge" -sdk iphoneos

0 commit comments

Comments
 (0)