Update dependency platforms to v0.0.11 (#282) #1367
This file contains 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: CI | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
permissions: read-all | |
jobs: | |
test: | |
name: test (${{ matrix.bazel-version }}, ${{ matrix.os }}, ${{ matrix.external_dependency_system }}) | |
runs-on: ${{ matrix.os }}-latest | |
env: | |
USE_BAZEL_VERSION: ${{ matrix.bazel-version }} | |
BUILDBUDDY_RW_API_KEY: ${{ secrets.BUILDBUDDY_RW_API_KEY }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- bazel-version: 7.x | |
os: ubuntu | |
external_dependency_system: bzlmod | |
flags: --enable_bzlmod | |
- bazel-version: 7.x | |
os: ubuntu | |
external_dependency_system: workspace | |
flags: | |
- bazel-version: 7.x | |
os: macos | |
external_dependency_system: bzlmod | |
flags: --enable_bzlmod | |
- bazel-version: 7.x | |
os: macos | |
external_dependency_system: workspace | |
flags: | |
- bazel-version: 8.x | |
os: ubuntu | |
external_dependency_system: bzlmod | |
flags: | |
- bazel-version: 8.x | |
os: ubuntu | |
external_dependency_system: workspace | |
flags: --enable_workspace | |
- bazel-version: 8.x | |
os: macos | |
external_dependency_system: bzlmod | |
flags: | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use BuildBuddy RW API key instead of public readonly key | |
run: sed -i.bak 's#x-buildbuddy-api-key=.*#x-buildbuddy-api-key=${{ env.BUILDBUDDY_RW_API_KEY }}#' .bazelrc | |
if: ${{ env.BUILDBUDDY_RW_API_KEY }} | |
- run: echo "common ${{ matrix.flags }}" >> .bazelrc | |
# Don't want to bother with hundreds of lines of Workspace setup for the rules_pycross compat test | |
- if: matrix.external_dependency_system == 'workspace' || matrix.os == 'macos' | |
run: echo "tests/rules_pycross" >> .bazelignore | |
- run: bazel test //... | |
examples: | |
runs-on: ubuntu-latest | |
env: | |
USE_BAZEL_VERSION: ${{ matrix.bazel-version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
bazel-version: [7.x, 8.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- run: examples/integration_test.sh | |
determinism: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: tests/determinism/reproducible_shas.sh | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- uses: pre-commit/action@v3.0.1 | |
required: | |
runs-on: ubuntu-latest | |
needs: [test, examples, determinism, lint] # this automatically depends on all matrix jobs | |
steps: | |
- run: echo "All dependent jobs are required to pass" |