matrix:
  platform:
  - debian10
  - ubuntu2004
  - macos
  - macos_arm64
  - windows
  bazel:
  - 7.x
  - 6.x
tasks:
  verify_targets:
    name: Verify build targets
    platform: ${{ platform }}
    bazel: ${{ bazel }}
    # JavaParser is incompatible with JDK versions 21 and later.
    # https://github.com/javaparser/javaparser/issues/4022
    build_flags:
      - '--java_language_version=17'
      - '--java_runtime_version=remotejdk_17'
    build_targets:
    - '@javaparser//javaparser-core'
