cobalt: shallow single-revision fetch, not a submodule #2
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 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=LLVM --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: | | |
| for f in args/*.gn; do | |
| grep -q 'ffmpeg_branding = "Chrome"' "$f" || { echo "$f missing ffmpeg_branding"; exit 1; } | |
| done |