matrix:
  bazel: ["7.x", "rolling"]

tasks:
  verify_targets:
    name: "Build targets under //lib"
    platform: ubuntu2004
    bazel: ${{ bazel }}
    build_targets:
    - '@apple_support//lib/...'
  run_tests:
    name: "Run test targets"
    platform: "macos_arm64"
    bazel: ${{ bazel }}
    build_targets:
    - '@apple_support//lib/...'
    test_targets:
    - '@apple_support//test/...'
    - '--'
    # Needs visionOS SDK
    - '-@apple_support//test:binary_visionos_arm64_simulator_test'
    - '-@apple_support//test:binary_visionos_device_test'
