matrix:
  platform: [debian11, ubuntu2404, macos, macos_arm64]
  bazel: &bazels [7.x, 8.x, rolling]

tasks:
  verify_targets:
    name: Verify build targets
    platform: ${{ platform }}
    bazel: ${{ bazel }}
    build_flags: [--cxxopt=-std=c++17]
    build_targets: ["@paho.mqtt.cpp//...", -@paho.mqtt.cpp//test/...]

bcr_test_module:
  matrix:
    platform: [debian11, ubuntu2404]
    bazel: *bazels
  module_path: test
  tasks:
    run_test_module:
      name: Run test module
      platform: ${{ platform }}
      bazel: ${{ bazel }}
      build_flags: [--cxxopt=-std=c++17]
      test_targets: [//...]
