matrix:
  bazel:
    - 7.x
    - 8.x
    - rolling
  unix_platform:
    - debian11
    - ubuntu2204
    - macos
    - macos_arm64
  win_platform:
    - windows

tasks:

  unix_test:
    name: Verify build targets on Unix
    platform: ${{ unix_platform }}
    bazel: ${{ bazel }}
    build_flags:
    - --cxxopt=-std=c++20
    build_targets:
    - '@ftxui//:dom'
    - '@ftxui//:component'
    - '@ftxui//:screen'

  windows_test:
    name: Verify build targets
    platform: ${{ win_platform }}
    bazel: ${{ bazel }}
    build_flags:
    - --cxxopt=/std:c++20
    build_targets:
    - '@ftxui//:dom'
    - '@ftxui//:component'
    - '@ftxui//:screen'
