matrix:
  unix_platform:
    - debian10
    - debian11
    - macos
    - macos_arm64
    - ubuntu2004
    - ubuntu2204
    - ubuntu2404
  windows_platform:
    - windows
  bazel: [7.x, 8.x, rolling]
tasks:
  unix_test_header:
    name: Verify unix build targets (header only)
    platform: ${{ unix_platform }}
    bazel: ${{ bazel }}
    build_targets:
      - "@spdlog//:spdlog"
  unix_test_compiled:
    name: Verify unix build targets (compiled lib)
    platform: ${{ unix_platform }}
    bazel: ${{ bazel }}
    build_targets:
      - "@spdlog//:spdlog"
    build_flags:
      - "--@spdlog//:header_only=False"
  windows_test_header:
    name: Verify windows build targets (header only)
    platform: ${{ windows_platform }}
    bazel: ${{ bazel }}
    build_targets:
      - "@spdlog//:spdlog"
    build_flags:
      - --cxxopt=/utf-8
  windows_test_compiled:
    name: Verify windows build targets (compiled lib)
    platform: ${{ windows_platform }}
    bazel: ${{ bazel }}
    build_targets:
      - "@spdlog//:spdlog"
    build_flags:
      - "--@spdlog//:header_only=False"
      - "--cxxopt=/utf-8"
