matrix: &matrix
  platform:
    - debian10
    - debian11
    - macos
    - macos_arm64
    - ubuntu2004
    - ubuntu2204
    # - ubuntu2004_arm64
    - windows
  bazel: [7.x, rolling]
tasks:
  verify_targets:
    name: Verify build targets
    platform: ${{ platform }}
    bazel: ${{ bazel }}
    build_flags:
      - "--incompatible_disallow_empty_glob"
    build_targets:
      - "@xz//:lzma"
bcr_test_module:
  module_path: ""
  matrix: *matrix
  tasks:
    run_test_module:
      name: Run test module
      platform: ${{ platform }}
      bazel: ${{ bazel }}
      test_flags:
        - "--incompatible_disallow_empty_glob"
        - "--enable_runfiles"
      test_targets:
        - all_tests
