Statically-known existence conditions: drop or simplify the check #176
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
| name: Verify PR | |
| on: [pull_request] | |
| jobs: | |
| run-bazel-tests: | |
| name: "Run Bazel tests" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| cpp-compiler: ["clang", "gcc"] | |
| options: ["-c opt", ""] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: bazel-contrib/setup-bazel@0.18.0 | |
| with: | |
| bazelisk-cache: true | |
| disk-cache: "verify-pr:run-bazel-tests:${{ matrix.cpp-compiler }}" | |
| repository-cache: true | |
| - run: echo "CC=${{ matrix.cpp-compiler }}" >> $GITHUB_ENV | |
| - run: bazel test --test_output=errors ${{ matrix.options }} ... | |
| check-formatting: | |
| name: "Check Python formatting" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: psf/black@stable | |
| with: | |
| options: "--check --verbose" | |
| version: "24.8.0" | |
| check-build-json: | |
| name: "Check build.json" | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: bazel-contrib/setup-bazel@0.18.0 | |
| with: | |
| bazelisk-cache: true | |
| disk-cache: "verify-pr:check-build-json" | |
| repository-cache: true | |
| - run: python3 scripts/build_helpers/manage_build_json.py --validate |