matrix:
  platform:
  - debian13
  - ubuntu2204
  - ubuntu2404
  bazel: [7.x, 8.x, 9.x, rolling]
tasks:
  verify_targets:
    name: Verify build targets
    platform: ${{ platform }}
    bazel: ${{ bazel }}
    build_targets:
      - '@wayland//:wayland_client'
      - '@wayland//:wayland_cursor'
      - '@wayland//:wayland_egl'
      - '@wayland//:wayland_server'

bcr_test_module:
  module_path: tests
  matrix:
    platform:
    - debian13
    - ubuntu2204
    - ubuntu2404
    bazel: [7.x, 8.x, 9.x, rolling]
  tasks:
    run_test_module:
      name: Run test module
      platform: ${{ platform }}
      bazel: ${{ bazel }}
      build_targets:
        - //...
      test_targets:
        - //...
