matrix:
  platform:
  - rockylinux8
  - debian10
  - fedora39
  - ubuntu2004
  - macos
  - macos_arm64
  - windows
  bazel:
  - 7.x
  - 8.x
tasks:
  verify_targets:
    name: Verify build targets
    platform: ${{ platform }}
    bazel: ${{ bazel }}
    build_targets:
    - '@blake3//:blake3'
  verify_targets_windows_arm:
    name: Verify build targets for Windows ARM
    platform: windows
    setup:
      - echo bazel_dep(name = "rules_cc", version = "0.0.17") >> MODULE.bazel
      - echo cc_configure = use_extension("@rules_cc//cc:extensions.bzl", "cc_configure_extension") >> MODULE.bazel
      - echo use_repo(cc_configure, "local_config_cc") >> MODULE.bazel
    bazel: ${{ bazel }}
    build_targets:
    - '@blake3//:blake3'
    build_flags:
    - '--platforms=@blake3//:internal_ci_only_do_not_use_windows_arm64'
    - '--extra_toolchains=@local_config_cc//:cc-toolchain-arm64_windows'
