matrix:
  bazel:
    - 7.x
    - 8.x
  unix_platform:
    - debian10
    - ubuntu2004
    - macos
    - macos_arm64
  win_platform:
    - windows

tasks:
  unix_test:
    name: Verify build targets on Unix
    platform: ${{ unix_platform }}
    bazel: ${{ bazel }}
    build_targets:
    - '@nanobind_bazel//:nanobind'
    build_flags:
    - --cxxopt=-std=c++17
  windows_test:
    name: Verify build targets
    platform: ${{ win_platform }}
    bazel: ${{ bazel }}
    build_targets:
    - '@nanobind_bazel//:nanobind'
    build_flags:
    - --cxxopt=/std:c++17
