Skip to content

Commit 12df2b3

Browse files
Create the workflow YAML file to add CI check for verifying that the Linux tv-casting-
app continues to work with the Linux tv-app. The automation test script will come in a follow-up PR.
1 parent 4e582fc commit 12df2b3

File tree

1 file changed

+88
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)