Skip to content

Commit 14aac83

Browse files
authored
Initial pass for Issue 30906 "[Feature] Integrate tv-app and tv-casting-app into our CI system" (#32012)
* Create examples-tvapp.yaml * Delete .github/workflows/examples-tvapp.yaml * Create examples-tv-app.yaml Using nrfconnect as a template * Update examples-tv-app.yaml
1 parent 42a1c72 commit 14aac83

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed
+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Copyright (c) 2023 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: Build example - TV App and TV Casting App
16+
17+
on:
18+
push:
19+
pull_request:
20+
merge_group:
21+
22+
concurrency:
23+
group: ${{ github.ref }}-${{ github.workflow }}-${{ (github.event_name == 'pull_request' && github.event.number) || (github.event_name == 'workflow_dispatch' && github.run_number) || github.sha }}
24+
cancel-in-progress: true
25+
26+
env:
27+
CHIP_NO_LOG_TIMESTAMPS: true
28+
29+
jobs:
30+
tv-app:
31+
name: TV App
32+
33+
env:
34+
BUILD_TYPE: tv_app
35+
36+
runs-on: ubuntu-latest
37+
if: github.actor != 'restyled-io[bot]'
38+
39+
container:
40+
image: ghcr.io/project-chip/chip-build-android:35
41+
volumes:
42+
- "/tmp/bloat_reports:/tmp/bloat_reports"
43+
44+
steps:
45+
- name: Checkout
46+
uses: actions/checkout@v4
47+
- name: Checkout submodules & Bootstrap
48+
uses: ./.github/actions/checkout-submodules-and-bootstrap
49+
with:
50+
platform: android
51+
- name: Set up environment for size reports
52+
uses: ./.github/actions/setup-size-reports
53+
if: ${{ !env.ACT }}
54+
with:
55+
gh-context: ${{ toJson(github) }}
56+
- name: Build Android arm64-tv-casting-app
57+
run: |
58+
./scripts/run_in_build_env.sh \
59+
"./scripts/build/build_examples.py --target android-arm64-tv-casting-app build"
60+
- name: Clean out build output
61+
run: rm -rf ./out examples/tv-casting-app/android/App/app/libs/jniLibs/* examples/tv-casting-app/android/App/app/libs/*.jar
62+
- name: Build Android arm64-tv-server
63+
run: |
64+
./scripts/run_in_build_env.sh \
65+
"./scripts/build/build_examples.py --target android-arm64-tv-server build"
66+
- name: Clean out build output
67+
run: rm -rf ./out examples/tv-app/android/App/app/libs/jniLibs/* examples/tv-app/android/App/app/libs/*.jar
68+
- name: Uploading Size Reports
69+
uses: ./.github/actions/upload-size-reports
70+
if: ${{ !env.ACT }}
71+
with:
72+
platform-name: TVApp

0 commit comments

Comments
 (0)