bcr_test_module:
  module_path: test
  matrix:
    unix_platform:
      - debian11
      - ubuntu2004
      - ubuntu2204
      - ubuntu2404
      - macos
      - macos_arm64
    bazel: [7.x, 8.x, rolling]
  tasks:
    verify_targets_unix:
      name: Build and test targets on Unix platforms
      platform: ${{ unix_platform }}
      bazel: ${{ bazel }}
      build_targets:
        - "@azure-storage-common-cpp//:azure_storage_common_cpp"
      build_flags:
        - "--@curl//:ssl_lib=openssl"
    verify_targets_windows:
      name: Build and test targets on Windows
      platform: windows
      bazel: ${{ bazel }}
      build_targets:
        - "@azure-storage-common-cpp//:azure_storage_common_cpp"
      build_flags:
        - "--@azure-core-cpp//:build_transport_curl=false"
        # Enable once wil is in the BCR:
        # (https://github.com/bazelbuild/bazel-central-registry/issues/3807).
        # - "--@azure-core-cpp//:build_transport_winhttp=true"
