S0.2: resolve Leanback UA; smoke is now a real Leanback-load gate #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Free-runner-safe checks only. Chromium-scale builds run on the self-hosted runner (doc §14.3). | |
| name: lint | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| jobs: | |
| shell: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: shellcheck | |
| run: shellcheck -S warning scripts/*.sh | |
| launcher: | |
| # The launcher builds anywhere — no Chromium checkout needed (doc §14.3). | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: install toolchain | |
| run: sudo apt-get update && sudo apt-get install -y cmake ninja-build clang-format | |
| - name: clang-format check | |
| run: | | |
| find launcher/src launcher/tests \( -name '*.cpp' -o -name '*.hpp' \) \ | |
| | xargs clang-format --style=file --dry-run --Werror | |
| - name: build + test (gcc) | |
| run: | | |
| cmake -S launcher -B launcher/build -G Ninja -DCMAKE_BUILD_TYPE=Release | |
| cmake --build launcher/build | |
| ctest --test-dir launcher/build --output-on-failure | |
| - name: build (clang) | |
| run: | | |
| CXX=clang++ cmake -S launcher -B launcher/build-clang -G Ninja | |
| cmake --build launcher/build-clang | |
| gn-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: gn args sanity | |
| run: | | |
| # args/*.gn are EXTRAS layered on Cobalt's chromium_linux-x64x11 config (which already sets | |
| # proprietary_codecs=true; see cobalt/build/configs/common.gn), not standalone arg sets. | |
| # Guard against re-introducing conflicting full-config args here. | |
| for f in args/*.gn; do | |
| if grep -qE '^\s*(target_os|target_cpu|is_debug|ffmpeg_branding)\b' "$f"; then | |
| echo "$f sets a base-config arg; args/*.gn must contain only overrides"; exit 1 | |
| fi | |
| done |