|
| 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 Linux 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 | +jobs: |
| 30 | + Linux-tv-casting-app-and-Linux-tv-app: |
| 31 | + name: Linux TV Casting App and Linux TV App |
| 32 | + |
| 33 | + runs-on: ubuntu-latest |
| 34 | + if: github.actor != 'restyled-io[bot]' |
| 35 | + |
| 36 | + container: |
| 37 | + image: ghcr.io/project-chip/chip-build:41 |
| 38 | + |
| 39 | + steps: |
| 40 | + - name: Checkout |
| 41 | + uses: actions/checkout@v4 |
| 42 | + |
| 43 | + - name: Checkout submodules & Bootstrap |
| 44 | + uses: ./.github/actions/checkout-submodules-and-bootstrap |
| 45 | + with: |
| 46 | + platform: linux |
| 47 | + |
| 48 | + - name: Set Up Environment for Size Reports |
| 49 | + uses: ./.github/actions/setup-size-reports |
| 50 | + if: ${{ !env.ACT }} |
| 51 | + with: |
| 52 | + gh-context: ${{ toJson(github) }} |
| 53 | + |
| 54 | + - name: Build Linux tv-app |
| 55 | + run: | |
| 56 | + ./scripts/run_in_build_env.sh \ |
| 57 | + "scripts/examples/gn_build_example.sh examples/tv-app/linux/ out/tv-app" |
| 58 | +
|
| 59 | + - name: Build Linux tv-casting-app |
| 60 | + run: | |
| 61 | + ./scripts/run_in_build_env.sh \ |
| 62 | + "scripts/examples/gn_build_example.sh examples/tv-casting-app/linux/ out/tv-casting-app" |
| 63 | +
|
| 64 | + - name: Uploading Size Reports |
| 65 | + uses: ./.github/actions/upload-size-reports |
| 66 | + if: ${{ !env.ACT }} |
| 67 | + with: |
| 68 | + platform-name: Linux |
0 commit comments