Skip to content

Commit

Permalink
Add Bazel 8..0.0rc4 to CI (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
lalten authored Dec 2, 2024
1 parent c9ea876 commit ddca4b1
Showing 1 changed file with 38 additions and 11 deletions.
49 changes: 38 additions & 11 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,51 @@ on:
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:
bazel-version: [6.x, 7.x]
os: [ubuntu, macos]
external_dependency_system: [bzlmod, workspace]
exclude:
# Don't expect Bazel compatibility issues depending on OS, so speed this up
include:
- bazel-version: 6.x
os: ubuntu
external_dependency_system: bzlmod
flags: --enable_bzlmod
- bazel-version: 6.x
os: ubuntu
external_dependency_system: workspace
flags:
- 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
include:
- external_dependency_system: bzlmod
external_dependency_system: bzlmod
flags: --enable_bzlmod
- external_dependency_system: workspace
flags: --noenable_bzlmod
- bazel-version: 7.x
os: macos
external_dependency_system: workspace
flags:
- bazel-version: 8.0.0rc4
os: ubuntu
external_dependency_system: bzlmod
flags:
- bazel-version: 8.0.0rc4
os: ubuntu
external_dependency_system: workspace
flags: --enable_workspace
- bazel-version: 8.0.0rc4
os: macos
external_dependency_system: bzlmod
flags:
steps:
- uses: actions/checkout@v4
- name: Use BuildBuddy RW API key instead of public readonly key
Expand All @@ -34,7 +60,8 @@ jobs:
- 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'
# Also, ignore https://github.com/jvolkman/rules_pycross/issues/128
- if: matrix.external_dependency_system == 'workspace' || matrix.os == 'macos' || matrix.bazel-version == '8.0.0rc4'
run: echo "tests/rules_pycross" >> .bazelignore
- run: bazel test //...
examples:
Expand All @@ -44,7 +71,7 @@ jobs:
strategy:
fail-fast: false
matrix:
bazel-version: [6.x, 7.x]
bazel-version: [6.x, 7.x, 8.0.0rc4]
steps:
- uses: actions/checkout@v4
- run: examples/integration_test.sh
Expand Down

0 comments on commit ddca4b1

Please sign in to comment.